• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Batch file insert date into filename.

DnetMHZ

Diamond Member
I'm looking for an automated way to take a file that is created every day with the same file name and rename it with the date for example.

original file = backup.dat

todays file would be renamed to backup-12-21-04.dat .

Is this possible in a batch file?
 
Make a file called rename.vbs and paste the attached code into it. Call it like this:

c:\>cscript rename.vbs C:\Backup\Backup.dat
 
Back
Top