You are not logged in.
Pages: 1
Hi,
I want to rename my file in a specific folder to the current time, for example: my file name is test.txt and i want to rename it to test-114516.txt (if the time is 11:45:16). using command script in Windows.
Thank you and best Regards
Offline
see the stampme scripts here
Offline
Hi, thank you for your guide, I have tried the StampMe.cmd for renaming the file to the current date and time.
But it does not work with me, my file name is NAWPF.txt , so I used the last line in the command as:
REN %C:\Backup\NWAPF.txt% %NWAPF.txt%-%_yy%-%_mm%-%_dd%@%_hr%-%_min%%_ext%"
So is this correct ? how should I make it?
Thank you
Offline
no just save the whole script as stampme.cmd
then run
STAMPME "C:\Backup\NWAPF.txt"
Offline
Hi
It is working fine
Thanks a lot for your kindly assistance.
Regards
Mohammed
Offline
Pages: 1