Hi, Not sure if this the right forum for this or not, but here goes. I have a batch file that renames a file, ideally want i want is for the script to run periodically, and increment the number in the file name each time.
Currently i have a file called, HaCA.tvs and require backups taken of it throughout the day.
what i have now is the following code..
copy /B /Y HaCA.tvs "C:\BKUPS\Backup_00%1_HaCA.tvs"
so when i run the argument 2 it renames the files as Backup_002_HaCA.tvs and so on.
would it be possible for the script to increment by itself, and would then check if Backup_002_HaCA.tvs exists, if so then it would increment the number to Backup_003_HaCA.tvs
Many Thanks
Yurov Ardyy
Currently i have a file called, HaCA.tvs and require backups taken of it throughout the day.
what i have now is the following code..
copy /B /Y HaCA.tvs "C:\BKUPS\Backup_00%1_HaCA.tvs"
so when i run the argument 2 it renames the files as Backup_002_HaCA.tvs and so on.
would it be possible for the script to increment by itself, and would then check if Backup_002_HaCA.tvs exists, if so then it would increment the number to Backup_003_HaCA.tvs
Many Thanks
Yurov Ardyy