Welcome to MSFN

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


chose script

3 posts in this topic


i have a question. is it possible to make a .bat file with commands. where use can chose to run a program...


Please chose with one

1 Program1.exe

2 Program2.exe

then when user press 1 the first install or if they press 2 the number 2 install..

Can anone help me with that...


Share this post

Link to post
Share on other sites

Here is Cmd Promt Script that gives 3 choice


@Echo OffCLSCOLOR 9FMODE 62,9TITLE Demo Menu::This code is property of Gunsmokingman and Or Jake1Eye and you must have his permission to use.::This is only posted as example code and meant only to used as such.:MainCLSEcho.Echo This Is To Turn On Or Turn Off The Hiberfil.sysEcho.Echo Type 1 For This ChoiceEcho Type 2 For This ChoiceEcho Type Quit To Close WindowEcho.SET Choice=SET /P Choice=Type Choice Then Press Enter:IF /I '%Choice%'=='1' GOTO Item1IF /I '%Choice%'=='2' GOTO Item2IF /I '%Choice%'=='quit' GOTO TheEndECHO "%Choice%" is not valid. Please try again.SET /P = Press Enter To ContinueGOTO MAIN:Item1CLSEcho.Echo You Selected Choice 1ping -n 3>nulGoto TheEnd:Item2CLSEcho.Echo You Selected Choice 2ping -n 3>nulGoto TheEnd:TheEndExit

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.