Bat help: launching multiple programs, skippings programs that are already open.
Results 1 to 2 of 2

Thread: Bat help: launching multiple programs, skippings programs that are already open.

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    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

  2. #2
    Geezer confus-ed's Avatar
    Join Date
    Jul 1999
    Location
    In front of my PC....
    Posts
    13,087
    How's about a liberal helping of GOTO END after each program call ?

    I think that ought to fix you up ?

Similar Threads

  1. Unable to open IE links from programs
    By Social Enemy in forum Tech-To-Tech
    Replies: 1
    Last Post: November 19th, 2005, 07:10 PM
  2. no programs open... missing path o libary or .exe file
    By stringpunk in forum Windows NT/2000
    Replies: 1
    Last Post: October 22nd, 2001, 11:14 AM
  3. Replies: 3
    Last Post: August 3rd, 2001, 08:57 AM
  4. programs launching when win2k starts
    By Worldsci in forum Windows NT/2000
    Replies: 4
    Last Post: July 26th, 2001, 09:53 PM
  5. Installing programs across multiple users
    By bredmond in forum Windows NT/2000
    Replies: 3
    Last Post: May 10th, 2001, 02:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •