i have to create a batch file for a class of mine. the requirements are that its makes a folder on a drive, makes a subfolder in that same folder. lists the volume label, asks if the user would like to change the volume label, copys chkdsk over to the drive, copies sort over to the drive, runs both, then gives a finished message. i have everything else, but i do not know how to do the label change choice. anyone know how to do it? the percent one is just so i can specify which drive to do all of this to
here are the contents of my batch file
cls
mkdir %1\CITF120
mkdir %1\CITF120\STRAYER
VOL %1
PAUSE
copy C:\WINDOWS\SYSTEM32\CHKDSK.EXE %1\CITF120
PAUSE
COPY C:\WINDOWS\SYSTEM32\SORT.EXE %1\CITF120
PAUSE
DIR %1\CITF120
PAUSE
%1\CITF120\CHKDSK.EXE %1 /F
PAUSE
%1\CITF120\SORT.EXE %1\DOSHMWRK.TXT
PAUSE
ECHO OFF
ECHO YOUR PROCESS IS FINISHED, GOOD JOB!
PAUSE
here are the contents of my batch file
cls
mkdir %1\CITF120
mkdir %1\CITF120\STRAYER
VOL %1
PAUSE
copy C:\WINDOWS\SYSTEM32\CHKDSK.EXE %1\CITF120
PAUSE
COPY C:\WINDOWS\SYSTEM32\SORT.EXE %1\CITF120
PAUSE
DIR %1\CITF120
PAUSE
%1\CITF120\CHKDSK.EXE %1 /F
PAUSE
%1\CITF120\SORT.EXE %1\DOSHMWRK.TXT
PAUSE
ECHO OFF
ECHO YOUR PROCESS IS FINISHED, GOOD JOB!
PAUSE
Last edited: