Batch file that renames files uniquely
Running WinXP Pro. I have a batch file running once a day that downloads a single file via cmd prompt ftp to a local directory, however, the name of the source file never changes. I need a way of having the batch file rename the currently downloaded file so it is not overwritten the next day when the batch file runs again and downloads the latest version of the original file once again. Appending Date/Time would be ideal but not necessarily necessary.
In the very least, just need the downloaded file to be renamed with a unique name each time, even if it’s just appending ascending digits to the file name (I can always just check the file properties to see the date and time the file was created to distinguish them apart).
I am in a work environment, so installing additional third party applications like Perl are not an option for me. Just would like to know if anyone knows of a way to do this through standard batch file commands.
Any suggestions? My apologize, but I am not a programmer, so specifying it in layman’s terms is greatly appreciated. Thank you folks.
Jim