UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, The GoNix Initiative, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
November
Su M Tu W Th F Sa
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
Sponsored Links
Latest Postings
Latest Reviews
Topic Options
Rate This Topic
#8441 - 09/14/02 01:18 PM DOS user input
nueone00 Offline
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
Sponsored Links
      
#8442 - 09/14/02 01:53 PM Re: DOS user input
SilentRage Offline
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.

Code:
@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)
_________________________
Domain Registration, Hosting, Management
http://www.dollardns.net

Top
#8443 - 09/14/02 02:42 PM Re: DOS user input
sinetific Offline
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
#8444 - 09/14/02 03:05 PM Re: DOS user input
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: OH, USA
"I never got to heavy into batch scripting..."

Then don't speak up.

Batch programming has plenty of variables. Environment variables. I rely on them heavily in certain tasks. Also, you don't have to make a numerical choice from 1 to 5. You can make it a yes/no/cancel choice using the y/n/c characters. Any character you want can be the input.

People has made batch viruses before. It is not as weak as you may think.
_________________________
Domain Registration, Hosting, Management
http://www.dollardns.net

Top
#8445 - 09/14/02 06:24 PM Re: DOS user input
nueone00 Offline
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
#8446 - 09/14/02 07:56 PM Re: DOS user input
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: OH, USA
I'll let you in on a little secret. I don't get pissed. I've been pissed all of 3 times on this board. once at TRON, a second time at IceDog, and a 3rd time at Caffeine - which comparitively didn't last nearly as long. Of those three, only TRON put me into a true RAGE. It's where I got my name after all.

Everything else is just a moments irritation which I forget about in 5 minutes.
_________________________
Domain Registration, Hosting, Management
http://www.dollardns.net

Top
#8447 - 09/15/02 12:46 AM Re: DOS user input
nueone00 Offline
Junior Member

Registered: 09/11/02
Posts: 10
SR- what did tron do to get you all pissed off.
nueone00

Top
#8448 - 09/15/02 01:40 AM Re: DOS user input
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: OH, USA
nah, I won't get into this discussion in the newbie forum. I don't really wanna discuss it anyway. It's not important.
_________________________
Domain Registration, Hosting, Management
http://www.dollardns.net

Top
#8449 - 09/15/02 08:32 PM Re: DOS user input
Le4rner Offline
UGN Supporter

Registered: 03/05/02
Posts: 562
Just know this, SR used to be H@ck@ngel

It got ugly, then he became SilentRage. He is such a n00b but we love him anyway. :p
_________________________
http://promodtecnologies.com/rrfn

Top
#8450 - 09/16/02 11:24 PM Re: DOS user input
Mornse Offline
Member

Registered: 03/03/02
Posts: 185
Loc: Vancouver
lol, that quite humerous Le4ner

(p.s. I'm not joking)
_________________________
Cha want some w***up?

http://www.dopeskill.com

Top
#8451 - 09/18/02 01:40 AM Re: DOS user input
Gremelin Offline

Community Owner
*****

Registered: 02/28/02
Posts: 7193
Loc: Portland, OR; USA
Quote:
Originally posted by SilentRage:
I'll let you in on a little secret. I don't get pissed. I've been pissed all of 3 times on this board. once at TRON, a second time at IceDog, and a 3rd time at Caffeine - which comparitively didn't last nearly as long. Of those three, only TRON put me into a true RAGE. It's where I got my name after all.

Everything else is just a moments irritation which I forget about in 5 minutes.
awwe i've never pissed you off? how about phukedklown? heh

I know that i've pissed off learner...
_________________________
Donate to UGN Security here.
UGN Security, Back of the Web, Elite Web Gamers & VNC Web Design Owner

Top
#8452 - 09/18/02 09:02 AM Re: DOS user input
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: OH, USA
I seem to remember a 'phukedklown' somewhere, but I've forgotten all about him. IceDog pissed me off cause of his actions toward me. Caffeine pissed me off with his blind arrogance. TRON pissed me off with a combonation of both.

You've got the right stuff there Gizmo, I agree, you've displayed both to Learner. But mostly, you're not arrogant, it's just conceit like I have. And mostly you don't smack people around unless they deserve it. It's a good thing, don't change.
_________________________
Domain Registration, Hosting, Management
http://www.dollardns.net

Top
#8453 - 09/18/02 10:07 PM Re: DOS user input
Le4rner Offline
UGN Supporter

Registered: 03/05/02
Posts: 562
Yea Gizzy got me.... I was Pwned... lol

/me ph34rs
_________________________
http://promodtecnologies.com/rrfn

Top
#8454 - 09/19/02 02:27 PM Re: DOS user input
ohfuk Offline
UGN Supporter

Registered: 08/31/02
Posts: 274
everyone pisses me off

Top
#8455 - 09/19/02 10:40 PM Re: DOS user input
Le4rner Offline
UGN Supporter

Registered: 03/05/02
Posts: 562
ha dude you have no idea.....
_________________________
http://promodtecnologies.com/rrfn

Top

Moderator:  Infinite 
Featured Member
Registered: 03/02/02
Posts: 136
Forum Stats
2151 Members
46 Forums
35761 Topics
70931 Posts

Max Online: 1567 @ 04/25/10 05:20 AM
Top Posters
UGN Security 28922
Gremelin 7193
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
HushHush, golqm, Tim050, Gecko666, defghi795767
2150 Registered Users
Who's Online
0 registered (), 413 Guests and 310 Spiders online.
Key: Admin, Global Mod, Mod
Latest News
luxury goods sales at $405B by 2019
by golqm
10/28/14 05:19 AM


Donate
  Get Firefox!
Get FireFox!