Renaming certain files with Windows batch -


using batch file there way can strip off .failed extension first 1000 files files in directory.

for example

1.pdf.failed => 1.pdf 2.pdf.failed => 2.pdf

this should work

for %%f in (*.pdf.failed) rename "%%f" "%%~nf" 

if want xx first files, define variable count , increment on each loop itineration. when number reached, break loop. see how break loop here : how break inner loop in nested loop batch script


Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

formula - R: how to pass in a reference to the variable in glm or lm? -