batch

Hello,

How do I create a daily folder with a naming convention like this 2012.09.11 as name in a particular folder - where 9 is the month and 11 is the day – in command shell and save it as batch script?

Thanks
RayneAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
jss1199Connect With a Mentor Commented:
Adding the below line in a script and running the script daily, maybe via task scheduler, will create a folder with the current date in the requested format. change C:\mydir\ to the location where you want the folder created.

md C:\mydir\%date:~-4,4%.%date:~-10,2%.%date:~-7,2%
0
 
RayneAuthor Commented:
Thank you a Million :)
0
 
RayneAuthor Commented:
Hello jss1199

How do i add it in task scheduler?
0
 
RayneAuthor Commented:
:)
thank you Got it
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.