Computing.Net > Forums > Disk Operating System > Variables in directory names

Variables in directory names

Reply to Message Icon

Original Message
Name: CozMo
Date: July 28, 2002 at 17:39:04 Pacific
Subject: Variables in directory names
Comment:

Hi everyone,

I wondered if it was possible to use the date var when making a new dir.
I'd like to do a backup of several computers and put all the files in one different directory every day on my machine.
I thought about making a new dir using the %date% variable, but doesn't seems working...
I'm running W2K on my computer
Anyone can help me please...please..please..

Cheers


Report Offensive Message For Removal


Response Number 1
Name: Wengier
Date: July 28, 2002 at 17:45:14 Pacific
Subject: Variables in directory names
Reply: (edit)

"md %date%" should work in Win2K/XP.


Report Offensive Follow Up For Removal

Response Number 2
Name: DTec
Date: July 28, 2002 at 22:23:23 Pacific
Subject: Variables in directory names
Reply: (edit)

Windows/DOS directory names cannot contain slashes. In which case if you tried to use md %date% it will try to create a dir of mm/dd/yy which generates an invalid syntax error.


Report Offensive Follow Up For Removal

Response Number 3
Name: CozMo
Date: July 29, 2002 at 10:56:17 Pacific
Subject: Variables in directory names
Reply: (edit)

SO by changing the date format in Dos mode, it will be possible.
Does anyone know how to change the date format in Dos ? :-)



Report Offensive Follow Up For Removal

Response Number 4
Name: Renaissance Man
Date: July 29, 2002 at 16:53:44 Pacific
Subject: Variables in directory names
Reply: (edit)

http://www.computing.net/dos/wwwboard/forum/10321.html
http://www.computing.net/dos/wwwboard/forum/10290.html
http://www.computing.net/dos/wwwboard/forum/10271.html


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Variables in directory names

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge