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?