Slight modification of current code, but it is not working. @echo off rem * Batch job designed to create a sequence number for the IA records used rem * to upload contractuals at time of billing to PBAR. tammie sherwood 05/05/09 rem * Delete all text files once sequence has reached 99999 and start over with 0 if exist 19999.txt del 1*.txt Copy .\10000.LOG .\10000.txt rem * Control batch sequence with Set FILE command set LIST= for %%I in (10*) do set LIST=%LIST%%%~nI ECHO %LIST% set /A FILE=%LIST%+1 echo %FILE% Copy .\10000.txt .\%FILE%.txt del 10000.txt echo %LIST% del %LIST%.txt
|how to delete all files and folders from a dir MS DOS||3||64|
|Batch File Bulk File Rename||3||55|
|Batch file to delete a folder||5||71|
|Triggering different executables from batch file based on the time of day||4||27|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
18 Experts available now in Live!