ogr2ogr clip all shapefiles in a directory
Modifying the referenced answer, in the Windows command line:
for /R %f in (*.shp) do ogr2ogr "%~dpnf_clipped.shp" -clipsrc clipper.shp "%f"
You just add _clipped to the output. Note, this will also clip the clipping file, and work recursively, so it will also clip the shapefiles in sub-folders.
If you don't want it recursive:
for %f in (*.shp) do ogr2ogr "%~dpnf_clipped.shp" -clipsrc clipper.shp "%f"
To run it into a subfolder without changing names of the files, although it cannot create the folder, so an empty "clipped" folder needs to exist:
for %f in (*.shp) do ogr2ogr ".\clipped\%~nf.shp" -clipsrc clipper.shp "%f"
And finally for a different folder in the same path. So instead of "C:\data" to get it into "C:\clipped" you can do:
for %f in (*.shp) do ogr2ogr ".\..\clipped\%~nf.shp" -clipsrc clipper.shp "%f"
Like with the previous command, that folder needs to exist.