-
January 31st, 2006, 04:24 PM
#1
Bat help: launching multiple programs, skippings programs that are already open.
I'm on windows xp home and need a little assistance on launching multiple programs, but if the program is already open it should skip to next or end, heres the batch code.. sadly i've missed something.
Code:
@echo off
REM STARTS PROGRAMS
:BEGIN
CLS
CHOICE /N /C:1234567891011 PICK A NUMBER (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, or 11)%1
IF OPEN ==11 GOTO ELEVEN
IF OPEN ==10 GOTO TEN
IF OPEN ==9 GOTO NINE
IF OPEN ==8 GOTO EIGHT
IF OPEN ==7 GOTO SEVEN
IF OPEN ==6 GOTO SIX
IF OPEN ==5 GOTO FIVE
IF OPEN ==4 GOTO FOUR
IF OPEN ==3 GOTO THREE
IF OPEN ==2 GOTO TWO
IF OPEN ==1 GOTO ONE
:ELEVEN
:11
start /MIN "" "C:\Progra~1\Hotkeys\HOTKEYS.EXE"
:TEN
:10
start /MIN "" "C:\Program Files\WinRoll\winroll.exe"
:NINE
:9
start /MIN "" "C:\Documents and Settings\username\My Documents\files\YzDock\YzDock"
:EIGHT
:8
start /MIN "" "C:\Documents and Settings\username\My Documents\files\Tray it\trayit!.exe"
:SEVEN
:7
start /MIN "" "C:\Program Files\DeskPins\DeskPins.exe"
:SIX
:6
start /MIN "" "C:\Program Files\LaunchTab\LaunchTab.exe"
:FIVE
:5
start /MIN "" "C:\Program Files\Stick\Stick.exe"
:FOUR
:4
start /MIN "" "C:\PROGRA~1\BILLPS~1\WINPAT~1\WinPatrol.exe"
:THREE
:3
start /MIN "" "C:\Documents and Settings\username\Desktop\multimedia\xmplay.exe"
:TWO
:2
start /MIN "" "C:\Program Files\OuttaSight\OuttaSight.exe"
:ONE
:1
start /MIN "" "C:\Documents and Settings\username\My Documents\files\traybar\Traybar.exe"
:END
-
February 1st, 2006, 04:56 PM
#2
Geezer
How's about a liberal helping of GOTO END after each program call ?
I think that ought to fix you up ?
Similar Threads
-
By Social Enemy in forum Tech-To-Tech
Replies: 1
Last Post: November 19th, 2005, 07:10 PM
-
By stringpunk in forum Windows NT/2000
Replies: 1
Last Post: October 22nd, 2001, 11:14 AM
-
By Kendall in forum Tech-To-Tech
Replies: 3
Last Post: August 3rd, 2001, 08:57 AM
-
By Worldsci in forum Windows NT/2000
Replies: 4
Last Post: July 26th, 2001, 09:53 PM
-
By bredmond in forum Windows NT/2000
Replies: 3
Last Post: May 10th, 2001, 02:26 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks