| 1. |
Solve : Batch to Run 3 Programs? |
|
Answer» So This?: You got it. Code: [Select]choice /m "What Is Your Choice?" /m must come after CHOICE to indicate that the passage in quotes is the displayed message according to my system ( Vista Home Premium ) It has CHANGED then. I have the Windows 98 choice.exe Code: [Select]CHOICE [/C[:]choices] [/N] [/S] [/T[:]c,nn] [text] This is Vista choice.exe option text Code: [Select]CHOICE [/C choices] [/N] [/CS] [/T timeout /D choice] [/M text]AH, yes WIn98 Choice command needs no /mHere is another way you can start your 3 programs @ECHO off cls :start ECHO. ECHO Y. Start Programs ECHO N. Exit set choice= set /p choice=Type Y or N to run programs or exit. if not '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='y' goto progrun if '%choice%'=='n' goto bye ECHO "%choice%" is not valid please try again ECHO. goto start :progrun start "" "C:\Program Files\Mioplanet Battery Meter\Mioplanet Battery Meter.exe" start "" "C:\Program Files\Pixoria\Konfabulator\YahooWidgets.exe" start "" "C:\Program Files\Stardock\ObjectDock\ObjectDock.exe" goto end :bye ECHO BYE goto end :endThat code works perfect also, but I have also edited the other code a bit. Code: [Select]@echo off title Macilizer echo Macilizer starting... ping -n 1 -w 2000 1.1.1.1 >nul echo Initializing... ping -n 1 -w 500 1.1.1.1 >nul Choice /M "Do You Want To Run Mac Look-Alike Programs?" If %errorlevel% EQU 2 goto no If %errorlevel% EQU 1 goto yes :yes echo Starting Battery Meter ping -n 1 -w 2000 1.1.1.1 >nul start "" "C:\Program Files\Mioplanet Battery Meter\Mioplanet Battery Meter.exe" echo Starting Konfablator ping -n 1 -w 2000 1.1.1.1 >nul start "" "C:\Program echo Starting Object Dock ping -n 1 -w 2000 1.1.1.1 >nul start "" "C:\Program Files\Stardock\ObjectDock\ObjectDock.exe" ping -n 1 -w 2000 1.1.1.1 >nul echo Exiting.... ping -n 1 -w 2000 1.1.1.1 >nul exit :no echo Exiting.... ping -n 1 -w 2000 1.1.1.1 >nul exit |
|