computing
  • 0

Solved How To Increment Numbers In a Batch File Using DOS?

  • 0

I created many files like 501.xls, 502.xls, 503.xls upto 1200.xls.
I’d like to increase the number like 502.xls instead of 501.xls, 503.xls instead of 502.xls.
Just need to increase the number by one only.
Using F2 is bit hard for such large number of files.
Really appreciate your help in advance

Share

1 Answer

  1. The output is moved to the “processed” folder within the same directory as the script. You can manually cut/copy and paste the files in the original folder to overwrite them.

    Another way around is deleting the old files first, then copying the new ones.

    Don’t worry if plan A fails, there are 25 more letters in the alphabet 😉

    • 0