[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now



Posted on 2013-12-04
Medium Priority
Last Modified: 2013-12-04

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?

Question by:Rayne
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
LVL 19

Accepted Solution

jss1199 earned 2000 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%

Author Comment

ID: 39696033
Thank you a Million :)

Author Comment

ID: 39696044
Hello jss1199

How do i add it in task scheduler?

Author Comment

ID: 39696060
thank you Got it

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Cancel future meetings from user mailboxes in Office 365 using Remove-CalendarEvents
Ever wonder what it's like to get hit by ransomware? "Tom" gives you all the dirty details first-hand – and conveys the hard lessons his company learned in the aftermath.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

649 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