|I have an app that outputs a file and lets me specify the file name and path like:|
app.exe -o D:\out\new001.txt
I want the naming to be like: new001.txt new002.txt new003.txt etc.
I would like to write a batch script to scan through D:\out\ and figure out what's the next filename to write
For example, if new001.txt through new080.txt and new091.txt exists in D:\out, do app.exe -o D:\out\new092.txt