Send to a Friend

XOIIO's avatar

Help with this batch script?

Asked by XOIIO (18328points) September 24th, 2011

Alright, so I am making batch script that backs up my minecraft server map every 15 minutes, and the copying line is this:

XCOPY /E /H C:\Users\%USERNAME%\Desktop\MCServer\world “C:\MCServerBackup\Backup-%DATE%\%TIME%\”

The problem is, it doesnt make a folder “sat 09\24\2011\time”, it makes folders inside of eachother. first sat 09, then 34, then 2011

how do I get it to make one folder with the date, not 3 becasue of the slashes?

Using Fluther

or

Using Email

Separate multiple emails with commas.
We’ll only use these emails for this message.