My friend wants to make a story he wrote play out in command prompt like the telnet server playing Starwars, only no ASCII characters. He wants to make it look as if someone is logging into a computer running MS DOS and opening up a text file.
I know there is a way to do this, I'm just not sure how. I know it can be executed through a .bat file.
So is that all I would use?
How about if I wanted the user to put in a user name and password.
set /p varname="promptgoeshere:"
if %varname%=="somevalue" echo success
if %varname%=="somethingelse" goto anotherSpot
in case you didn't notice, you can put whatever you want after an if statement, whether it's goto, echo, ping, whatever.
Sorry, you need to Log In to post a reply to this thread.