SilabGarza - RS Private Server  
Home Forum Play Register Store Market Highscores Mark Forums Read
Go Back   SilabGarza - RS Private Server > SilGar Media > Computers > Help
Reload this Page Help with Batch cmds

Help with Batch cmds
  (#1 (permalink))
ZLVBx is Offline
☆☆★Got Fox?★☆☆
ZLVBx's Avatar
Posts: 134
Cookies Given: 0
Cookies Received: 0
Time Online: 1 d 16 h 17 m
Default Help with Batch cmds - 08-11-2012, 10:56 AM

I'm just messing around with batch commands, and i'm having a very hard time using the IF commands.

@echo off
echo 1 or 2?
if '%option%' == 1 goto 2
if '%option%' == 2 goto 3
echo You pressed 1
goto 1
echo you pressed 2
goto 1

I'm just trying to prompt the user '1 or 2?' and have it tell them if they pressed 1 or 2. The code above simply prompts them and repeats line 2.

What am I doing wrong?

Add me on Xbox? !Gametag is TCG Technic!


Want to learn how to spray paint Xbox controllers? Click here!

adsense code2.3
Closed Thread


.bat, batch, zlvbx

Help with Batch cmds


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

All times are GMT -7. The time now is 05:46 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.