Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

chose script

- - - - -

  • Please log in to reply
2 replies to this topic

#1
MitsuMan

MitsuMan

    Member

  • Member
  • PipPip
  • 149 posts
  • Joined 12-March 06
Hello

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

example

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...


How to remove advertisement from MSFN

#2
gunsmokingman

gunsmokingman

    MSFN Master

  • Super Moderator
  • 2,419 posts
  • Joined 02-August 03
  • OS:none specified
  • Country: Country Flag
Here is Cmd Promt Script that gives 3 choice

Demo_Menu.cmd
@Echo Off
CLS
COLOR 9F
MODE 62,9
TITLE 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.
:Main
CLS
Echo.
Echo This Is To Turn On Or Turn Off The Hiberfil.sys
Echo.
Echo Type 1 For This Choice
Echo Type 2 For This Choice
Echo Type Quit To Close Window
Echo.

SET Choice=
SET /P Choice=Type Choice Then Press Enter:


IF /I '%Choice%'=='1' GOTO Item1
IF /I '%Choice%'=='2' GOTO Item2
IF /I '%Choice%'=='quit' GOTO TheEnd


ECHO "%Choice%" is not valid. Please try again.
SET /P = Press Enter To Continue
GOTO MAIN


:Item1
CLS
Echo.
Echo You Selected Choice 1
ping -n 3 127.0.0.1>nul
Goto TheEnd


:Item2
CLS
Echo.
Echo You Selected Choice 2
ping -n 3 127.0.0.1>nul
Goto TheEnd

:TheEnd
Exit



GunSmokingMan



#3
MitsuMan

MitsuMan

    Member

  • Member
  • PipPip
  • 149 posts
  • Joined 12-March 06
Hello

Thank you very much for the help ;)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users