Manage Learn to apply best practices and optimize your operations.

How to define a batch script that saves working documents into dated folders

Our systems management expert explains where to find tutorials on writing batch scripts to create date-based folders.

I am trying to define a batch file that on a daily basis will create a folder on a backup drive based on the date. If I were to manually do this, I would go into the root directory of the secondary drive, make a directory (called something like "backup xx_xx_xxxx"), change directories into this folder, go back to the root of C, then run the backup. Is there a wild card of sorts that would insert a given date into this example?
This site offers a clear-cut, free tutorial on how to create this type of batch script. However, there are many ways to script out this type of request, not to mention many cheap script creation utilities. To explore other options, conduct a Web search for "batch script date folder create."

Dig Deeper on Windows Server storage management

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.