Computing.Net > Forums > Disk Operating System > MKDIR script help

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.

MKDIR script help

Reply to Message Icon

Name: Jason
Date: April 28, 2003 at 14:51:59 Pacific
OS: Windows2000
CPU/Ram: P4 1.7/512M
Comment:

Below is the script that I am working with. I want it to prompt me for the "directory name" and change to that directory after it is created. Is this possible?

mkdir "directory name"
cd "directory name"
mkdir blocks
mkdir exhibits
mkdir images
mkdir old_submittals
mkdir quantities
mkdir refs
mkdir scratch
mkdir sheets
mkdir structure

cd old_submittals
mkdir 30%
mkdir 60%
mkdir 90%
mkdir 100%
cd ..



Sponsored Link
Ads by Google

Response Number 1
Name: Secret_Doom
Date: April 28, 2003 at 15:18:00 Pacific
Reply:

Yeah, that can be done. This should do it:

@echo off
set dirname=
:input
set /P dirname=Type directory name: %=%
if "%dirname%"=="" goto input
mkdir "%dirname%"
cd "%dirname%"
mkdir blocks
...

That will work on Windows 2000 and XP only. Alternate methods must be used for other Operating Systems.

-- Leonardo Pignataro - Secret_Doom --

secret_doom@hotmail.com
www.batch.hpg.com.br


0

Response Number 2
Name: Jason
Date: April 28, 2003 at 15:30:31 Pacific
Reply:

works like a charm - thanks a lot!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Registry edit Variables in messenger



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: MKDIR script help

Advanced batch scripting help! www.computing.net/answers/dos/advanced-batch-scripting-help/12359.html

batch script help www.computing.net/answers/dos/batch-script-help/12765.html

help for dos-nt scripting www.computing.net/answers/dos/help-for-dosnt-scripting/13582.html