Rename file with current datetime appended to filename
Solved/Closed
Hello,
I have the following bat file:
FOR %%V IN (%1) DO FOR /F "tokens=1-5 delims=/: " %%J IN ("%%~tV") DO ECHO Rename "%%V" %%L%%J%%K_%%M%%N%%~xV
This will rename the files to the datetime stamp. However I want to append the datetime to the filename.
Example:
filename: betty.rpt rename to betty0924081530.rpt
Can you help me with the correct syntax?
Thanks, Betty
I have the following bat file:
FOR %%V IN (%1) DO FOR /F "tokens=1-5 delims=/: " %%J IN ("%%~tV") DO ECHO Rename "%%V" %%L%%J%%K_%%M%%N%%~xV
This will rename the files to the datetime stamp. However I want to append the datetime to the filename.
Example:
filename: betty.rpt rename to betty0924081530.rpt
Can you help me with the correct syntax?
Thanks, Betty
Related:
- Cmd rename file with date yyyymmdd
- Cmd rename file with date - Best answers
- Cmd add date to filename - Best answers
- Rename computer cmd - Guide
- Windows 10 iso file download 64-bit - Download - Windows
- Rename lg tv - Guide
- Error reading cdr file ✓ - Software Forum
- Steam cmd download - Download - Gaming tools