• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

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
0
Rayne
Asked:
Rayne
  • 3
1 Solution
 
jss1199Commented:
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.

Join & Write a Comment

Featured Post

How do you know if your security is working?

Protecting your business doesn’t have to mean sifting through endless alerts and notifications. With WatchGuard Total Security Suite, you can feel confident that your business is secure, meaning you can get back to the things that have been sitting on your to-do list.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now