Sponsor Advertisements help keep UGN Security Online.
Sponsor Advertisements help keep UGN Security Online.
Want to earn prizes for clicking online advertisements? Join Rewards1.com.
|
|
|
#8441 - 09/14/02 06:18 PM
DOS user input
|
Junior Member
Registered: 09/11/02
Posts: 10
|
I'm having trouble figuring out how to get user input in one of my basic batch files, I've looked at various sites and still don't understand, could someone please explain if you have the time. I really want to learn. l8r nueone
|
|
Top
|
|
|
|
Sponsor Advertisements help keep UGN Security Online.
Sponsor Advertisements help keep UGN Security Online.
|
|
#8442 - 09/14/02 06:53 PM
Re: DOS user input
|
DollarDNS Owner
Registered: 03/04/02
Posts: 1273
Loc: OH, USA
|
yo stupid, I already gave you code on how to do this. Here, I'll leave out all the extra crap, maybe you'll get a clue this time. It's part of a batch file I've made to install a program I've made. @ECHO OFF
:MAIN
CLS
ECHO Welcome to the TCP WorkShop Installation setup.
ECHO Here we'll register or unregister the required DLL files.
ECHO.
ECHO Please choose:
ECHO 1 Auto Install
ECHO 2 Auto Uninstall
ECHO 3 Expert Install
ECHO 4 Expert Uninstall
ECHO 5 Quit
ECHO.
CHOICE /n /c:12345 "> "
IF ERRORLEVEL 5 GOTO QUIT
IF ERRORLEVEL 4 GOTO EUninstall
IF ERRORLEVEL 3 GOTO EInstall
IF ERRORLEVEL 2 GOTO AUninstall
IF ERRORLEVEL 1 GOTO AInstall
:AInstall
ECHO dumbass pressed 1
pause
GOTO MAIN
:AUninstall
ECHO dumbass pressed 2
pause
GOTO MAIN
:EInstall
ECHO dumbass pressed 3
pause
GOTO MAIN
:EUninstall
ECHO dumbass pressed 4
pause
GOTO MAIN
:QUIT
ECHO dumbass wanted to quit
pause See that? Put that into a batch file and run it. Can't you figure it out by example? (required external program: CHOICE.COM. You used to be able to download batch utility files from my website, but since I don't have it up yet, I've opened an FTP server to its download directory: server: serialcoders.sytes.net:21 location: /Download/DOS/BatUtils.zip)
|
|
Top
|
|
|
|
#8443 - 09/14/02 07:42 PM
Re: DOS user input
|
nobody
Registered: 03/02/02
Posts: 815
Loc: Ann Arbor
|
What type of user input did you want to put into the file? I dont think its a strong enough language to handle variables. The user input in rage's script is in the form of the user making a choice, either 1,2,3,or 4. All other input has to be taken from files or input devices I think I never got to heavy into batch scripting...
|
|
Top
|
|
|
|
#8445 - 09/14/02 11:24 PM
Re: DOS user input
|
Junior Member
Registered: 09/11/02
Posts: 10
|
thnx for the help sr, sorry your all like pissed off, just asking a question, i couldnt get it before so i was tryin again and just wanted to get more answers. l8r nueone
|
|
Top
|
|
|
|
#8447 - 09/15/02 05:46 AM
Re: DOS user input
|
Junior Member
Registered: 09/11/02
Posts: 10
|
SR- what did tron do to get you all pissed off. nueone00
|
|
Top
|
|
|
|
#8450 - 09/17/02 04:24 AM
Re: DOS user input
|
Member
Registered: 03/03/02
Posts: 185
Loc: Vancouver
|
lol, that quite humerous Le4ner
(p.s. I'm not joking)
|
|
Top
|
|
|
|
#8454 - 09/19/02 07:27 PM
Re: DOS user input
|
UGN Supporter
Registered: 08/31/02
Posts: 274
|
|
|
Top
|
|
|
|
|
Registered: 02/28/02
Posts: 7192
|
|
2198 Members
46 Forums
24933 Topics
60103 Posts
Max Online: 1567 @ 04/25/10 10:20 AM
|
|
|
0 registered (),
318
Guests and
218
Spiders online. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|