Click here to Skip to main content
15,888,351 members
Articles / General Programming
Alternative
Tip/Trick

Get user input from DOS prompt

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
16 Nov 2010CPOL 7K   1  
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 ...
)

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Unknown
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --