Computing.Net > Forums > Disk Operating System > Create Directory with Variable Name

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Create Directory with Variable Name

Reply to Message Icon

Name: onekaraoke
Date: September 17, 2006 at 02:02:34 Pacific
OS: 6
CPU/Ram: 128
Product: dell
Comment:

Hi how do I create a directory with a varible name defined as say, today's date, within DOS without manual entry? e.g. I wish to create a directory called "Sept 20,1996" where this name actually comes from a variable. thanks a lot



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: September 17, 2006 at 02:26:54 Pacific
Reply:

First, you can not create a directory with spaces in the name. Commas are not a great idea either.

Next, what version of DOS? Is it MSDOS 6?

Have you made the code to get the date into a var?


=====================================
If at first you don't succeed, you're about average.

M2



0

Response Number 2
Name: os2fan2
Date: September 24, 2006 at 01:24:24 Pacific
Reply:

You can do something like "md %dirname%", where dirname is derived from the date.

For sorting purposes, it is best to use the date in format yyyymmdd.

The dream you dream alone is only a dream,
The dream we dream together is reality.


0

Response Number 3
Name: Mechanix2Go
Date: September 24, 2006 at 02:29:29 Pacific
Reply:

"You can do something like "md %dirname%", where dirname is derived from the date."

Sure, but first you need to get the date.

Quite right on your second point.


=====================================
If at first you don't succeed, you're about average.

M2



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Create Directory with Variable Name

Finding directory with largest name www.computing.net/answers/dos/finding-directory-with-largest-name/16145.html

DOS directory with today's date & time www.computing.net/answers/dos/dos-directory-with-todays-date-amp-time/10948.html

Creating Directories www.computing.net/answers/dos/creating-directories/13098.html