Have you tried this?
e.g: set Ctime=DATE_[%date::=-%_TIME_[%time::=-%]
MKDIR %Ctime%
when declaring a variable in batch the : towards the end of the var allows a declared char to be replaced with another like this:
set lol="lols"
set lol=%lol:s=z%
echo %lol%
lolz
hope it helps :)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.