How to rename a file with date/time?
Posted: 14 Feb 2011 08:26
Hi,
how is it possible to rename a file with current date and time.
i'm trying this but it's not working.
please help:
i'm using xp and Win7
pause
how is it possible to rename a file with current date and time.
i'm trying this but it's not working.
please help:
Code: Select all
@echo off
color 4
set N=
(for /f "tokens=1-5 delims=:" %%d in ("%time%") do ceho rename
file.txt file%%d-%%e-%%f.txt)
i'm using xp and Win7
pause