cmd help

A

Aaron

FOR /f "tokens=1-4 delims=/ " %%a in ('date /t') do set date=%%d%%b%%c%
md "%date%"

this gives me the folder 20040616

how i can change it to 040616
 
D

David Trimboli

Aaron said:
FOR /f "tokens=1-4 delims=/ " %%a in ('date /t') do set date=%%d%%b%%c%
md "%date%"

this gives me the folder 20040616

how i can change it to 040616



FOR /f "tokens=1-4 delims=/ " %%a in ('date /t') do set date=%%d%%b%%c%
md "%date:~2%"


David
Stardate 4464.7
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top