Batch files not opening some programs


  1. Posts : 31
    Windows 7 Home Premium 64-bit
       #1

    Batch files not opening some programs


    Ohai. It's been a while since I've been here. Didn't help that I'd forgotten my username and password.

    Anyway, recently I decided to start using batch files to open programs when I want to run several in one go, rather than running all of them at startup. Should save some time if I ever want to just start the computer up for one thing.

    So I'm having the problem that it doesn't recognise all the programs. Out of the 5 programs listed, only 2 of them will run. The error messages says it fails to find the programs at the specified location. I've tried both listing the full directory and then just the executable itself.

    Programs it will open:

    • Winamp
    • Xfire

    Programs it won't open:

    • Steam
    • GameTracker
    • Skype

    Any help? Thanks.
      My Computer


  2. Posts : 184
    Windows 7 Ultimate x64 sp1
       #2

    Can you post you batch file contents.
      My Computer


  3. Posts : 31
    Windows 7 Home Premium 64-bit
    Thread Starter
       #3

    rustberger said:
    Can you post you batch file contents.
    Nice display pic

    Anyway,

    START /MIN "C:\Program Files (x86)\Steam\" steam.exe
    START /MIN "C:\Program Files (x86)\Xfire\" xfire.exe
    START /MIN "C:\Program Files (x86)\GameTracker\" GTLite.exe
    START /MIN "C:\Program Files (x86)\Skype\Phone\" skype.exe
    START /MIN "C:\Program Files (x86)\Winamp\" winamp.exe
      My Computer


  4. Posts : 184
    Windows 7 Ultimate x64 sp1
       #4

    EDIT
    Try using,
    @echo off
    start /min "Winamp" "C:\Program Files (x86)\Winamp\winamp.exe"
    start /min "Steam" "C:\Program Files (x86)\Steam\steam.exe"
    start /min "Xfire" "C:\Program Files (x86)\Xfire\xfire.exe"
    start /min "GTLite" "C:\Program Files (x86)\GameTracker\GTLite.exe"
    start /min "Skype" "C:\Program Files (x86)\Skype\Phone\skype.exe"
    Last edited by rustberger; 18 Nov 2011 at 23:00.
      My Computer


  5. Posts : 31
    Windows 7 Home Premium 64-bit
    Thread Starter
       #5

    Nope, did the same thing. Found Winamp and Xfire, but not the others.
      My Computer


  6. Posts : 184
    Windows 7 Ultimate x64 sp1
       #6

    I just edited my first post try now.
      My Computer


  7. Posts : 31
    Windows 7 Home Premium 64-bit
    Thread Starter
       #7

    Awesome. It worked. Thanks so much dude.
    *Note to self: Shouldn't have left off the comment bit of the batch file*

    Thanks heaps.
      My Computer


  8. Posts : 184
    Windows 7 Ultimate x64 sp1
       #8

    Your welcome, Glad it worked
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:30.
Find Us