Sequential Filenames in DOS - TechRepublic
General discussion
January 30, 2001 at 03:08 AM
craig westwell

Sequential Filenames in DOS

by craig westwell . Updated 25 years, 3 months ago

I have a need to be able to determine if a file exists in a specific location and if it does, do create a new file, with the next sequential number. Ie if we find HED000003.xls, I want to be able to create HED000004.xls etc. Is there a way to automate this within a DOS batch file?

This discussion is locked

All Comments