Thanks mobajwa for reading my mind. That's exactly what I was looking for. Another option though is instead of Filename1+Currentdate.txt, how about the Filename1+Date Modified.txt
Thanks, haga147. Looking forward to your next post.
I have this but I am still working on it a little. It copies the file and appends the date like you want but it keeps asking if abc+blah.txt is suppose to be a directory or a text file. So that make automating harder. But here you go so u can play too.
set todaydate=
for /f "tokens=1-2 delims= " %%A in ('date /t') do set todaydate=%%B
for /f "tokens=1-3 delims=/" %%A in ("%todaydate%") do set todaydate=%%A%%B%%C
rem mkdir %todaydate%
OK, lets go with this. Sorry, but you are not gonna be able to use a + sign:
set todaydate=
for /f "tokens=1-2 delims= " %%A in ('date /t') do set todaydate=%%B
for /f "tokens=1-3 delims=/" %%A in ("%todaydate%") do set todaydate=%%A%%B%%C
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.