Choosable Batch Options

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,820
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 13, 2007

I am giving credit to CtrlFormula for making the first tutorial of this! Now, it's just a way to get a batch file to have options that really interact with what the user types. Leave any questions or comments.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (dmengeler)

  • how can you make batch parameters

    ex mcrsvr.bat -k -r

    or /k /r stuff like that

    windows has a file in the 32 that uses parameters for one of the batch files

  • Sorry man. I haven't done batch in SO long that I can't even remember. Sorry.

  • this is the only thing i cant do with batch, but for everything else, i can do anything with batch code. but its not complete with out this info but thanks anyway.

  • Sorry. Thanks for understanding.

  • You dont need to call it for input...

    You could also call it something Dialogue!

  • Yeah, I know. But if I try to say that, people get confused.

see all

All Comments (9)

Sign In or Sign Up now to post a comment!
  • No Worries :)

  • thanx man!

  • This Batch allows you to use two switches, if either one says "Y" or "Yes" it will go to Success. If the switches say other things or are not used, it will go to failed.

    Do not use "-" before the switches. Simply type the switch you want.

    For example, this would bring success:

    batchfilename.bat yes

    You can add other switches by adding another line saying:

    set switchname=%X

    Where X is the switch number. For example:

    'Batchname.bat a r z'

    In this example z is switch three, %3.

  • :Success

    echo Worked

    pause

    goto end

    :Failure

    echo failed

    pause

    :end

  • I'll post a batch file to help here Has to be in two parts though... @ECHO OFF set switch1=%1 set switch2=%2 if not defined switch1 (goto switch2) if /i %switch1%==Y (goto Success) if /i %switch1%==Yes (goto Success) :switch2 if not defined switch2 (goto Failure) if /i %switch2%==Y (goto Success) if /i %switch2%==Yes (goto Success) goto Failure
Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more