1.

Solve : processing of files with a batch file?

Answer»

I want some insight. I need to process several input files using batch file. Input files are having a particular naming pattern. Say files are having names LIKE
photo_2001.jpg,
photo_2002.jpg,
photo_2003.jpg,
photo_2004.jpg,
photo_2005.jpg etc .

I want to take file 1 ie photo_2001.jpg and do some processing then I want to take file 2 ie photo_2002.jpg for processing.

How can I change the file name in the batch file?dir C:\dir_name\*.* /a:d /B >>dir-list.txt
FOR /f %%L IN (dir-list.txt) DO ....

i'm still new... this WORK fine in my script Quote

How can I change the file name in the batch file?

after reading the question, all you want to do is change file name? basically you can change filename using ren or move command.
But i GUESS your problem is not as simple as that...


Discussion

No Comment Found