65.9K
CodeProject is changing. Read more.
Home

Get user input from DOS prompt

starIconstarIconstarIconstarIconstarIcon

5.00/5 (1 vote)

Nov 16, 2010

CPOL
viewsIcon

7090

Below should work without GOTO's...Took me awhile to find this while having to do build scripts.IF "%uname%" == "" ( ECHO Hello %uname%...) ELSE ( ECHO error ...)

Below should work without GOTO's... Took me awhile to find this while having to do build scripts.
IF "%uname%" == "" (
    ECHO Hello %uname%...
) ELSE (
    ECHO error ...
)