Solved how to rename folder with name and date stamp

Acer Acer aspire ao722-0825 11.6" laptop...
September 22, 2012 at 15:51:46
Specs: Windows XP, 1gb
how to rename folder with name and date stamp

See More: how to rename folder with name and date stamp

Report •

#1
September 23, 2012 at 09:53:47
✔ Best Answer
::contents of redir.bat assumes date format of "Sun 09/23/2012
set sdate=%date%
set sdate=%sdate:~-10%
set sdate=%sdate:/=%
rename c:\test1 test1_%sdate%
::ends please test

:: mike


Report •

#2
September 23, 2012 at 09:57:48
@ren %1 %1%date:~10,4%%date:~4,2%%date:~7,2%@%time:~0,2%%time:~3,2%%time:~6,2%
::==== end

ooops,didn't see mike's response till after i posted mine...

@mike: Lol, i thought yours was a better way, using replacement instead of substrings.


Report •

#3
September 23, 2012 at 11:30:39
Looks like yours is a less complicated way anyways. I tend to do things the hard way.

:: mike


Report •
Related Solutions


Ask Question