Q

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."
This was first published in September 2007

Dig deeper on Microsoft Windows Data Backup and Protection

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close