any dos gurus out there?

Associate
Joined
21 Jul 2005
Posts
1,416
im trying to automate the process of my ghost backups a little, at the moment i have 2 partitions and want them to be backed up to seperate ghost images. i usually name the images in the (month)(day)(drive letter) format, so if i did a backup today of my C:, it would be called 0315C.

i know how to make ghost use a variable as a filename for the image, if i do set 1=%date% then if i do echo %1% it will output 15/03/2007 but i have no need for the / and 2007 and would like to swap day and month around.

any ideas?
 
c:\>echo %DATE:~3,2%%DATE:~0,2%
0315

Now you have to figure out how to put the drive letter on :)
 
Back
Top Bottom