@ECHO OFF :: Obtaining user input in Windows NT :: with the use of the LABEL command :: posted August 20,1999 :: Author: Walter Zackery :: :: Adapted by Rob van der Woude :: (no longer uses a temporary file; :: redirection of label command's :: standard error prevents label command's :: own prompt to be displayed on screen) CLS ECHO. FOR /F "tokens=5* delims= " %%A IN ('VOL C: ^| FIND "drive C"') DO SET OLDLABEL=%%B ECHO Enter some input string, containing no more than 32 characters: FOR /F "TOKENS=*" %%? IN ('LABEL C: 2^>NUL') DO SET INPUT=%%? SET INPUT LABEL C: %OLDLABEL%