Solved

batch

Posted on 2013-12-04
4
198 Views
Last Modified: 2013-12-04
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
Comment
Question by:Rayne
  • 3
4 Comments
 
LVL 19

Accepted Solution

by:
jss1199 earned 500 total points
ID: 39695974
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
 

Author Comment

by:Rayne
ID: 39696033
Thank you a Million :)
0
 

Author Comment

by:Rayne
ID: 39696044
Hello jss1199

How do i add it in task scheduler?
0
 

Author Comment

by:Rayne
ID: 39696060
:)
thank you Got it
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question