Start (and stop) multiple programs with one click?

Page 1 of 2 12 LastLast

  1. Posts : 11
    Windows 7 Home Premium 32bit SP1
       #1

    Start (and stop) multiple programs with one click?


    I want to be able to quit several programs that are usually running in the background with one click so I can devote more resources to resource-intensive programs. When I'm done, I want to bring all those programs back with one click.

    What's the best way to accomplish this? If not quitting them, how can I at least launch them all at once, rather than repeatedly diving into the Start Menu to open each one?
      My Computer


  2. Posts : 17,322
    Win 10 Pro x64
       #2

    Welcome to the forum,

    I found this for starting multiple programs at once,

    How to start multiple programs with ONE mouseclick !
      My Computer


  3. Posts : 11
    Windows 7 Home Premium 32bit SP1
    Thread Starter
       #3

    derekimo said:
    Welcome to the forum,

    I found this for starting multiple programs at once,

    How to start multiple programs with ONE mouseclick !
    I saw that and tried it. It didn't work for me. No errors, and no programs launched. I used to write batch files for Windows 98 and a little for XP too, but then I switched to Mac. I have no idea how that command works or why it produces no results, either errors or successfully launched programs.

    ...If you want to look at it closely and either explain it or debug it, I would really appreciate it...

    EDIT: Here's exactly what happens when I try to run my batch file:


    And the whole of my batch:
    Code:
    FOR %%X IN (%userprofile%\LaunchEm\*.*) DO rundll32 shell32.dll,ShellExec_RunDLL %%X
      My Computer


  4. Posts : 11
    Windows 7 Home Premium 32bit SP1
    Thread Starter
       #4

    I know it's only been 18 hours since I first posted, but... really? No ideas? Anyone?

    On my Mac, I do the same thing with Automator. It's as easy as dropping in "Quit Application" and "Launch Application," and then saving it as a new app. One click and it's all taken care of for me. Is there anything like this on Windows?

    I found Jitbit Macro Recorder (http://www.jitbit.com/macro-recorder/) which claims to be "Automator for Windows," but surely there's a way to launch and quit programs without spending $30-$60 for the privilege.
      My Computer


  5. Posts : 17,322
    Win 10 Pro x64
       #5

    Sorry, that's not working.

    I've asked for some other eyes to have a look.
      My Computer


  6. Posts : 11
    Windows 7 Home Premium 32bit SP1
    Thread Starter
       #6

    Thanks! :)

    For now I'm using a folder full of shortcuts for launching the programs, but I would still like a one-click solution, and I have no way to shut them down other than going to each one and killing it myself. :/
      My Computer


  7. Posts : 17,322
    Win 10 Pro x64
       #7

    You're welcome, I'm sure someone will post something, our members never cease to amaze me with the vast array of knowledge they have.
      My Computer


  8. Posts : 2,171
    Windows 7 Ultimate x64
       #8

    Instead of this:

    Code:
    FOR %%X IN (%userprofile%\LaunchEm\*.*) DO rundll32 shell32.dll,ShellExec_RunDLL %%X
    Try this (same line but inserted two quotation marks):

    Code:
    FOR %%X IN ("%userprofile%\LaunchEm\*.*") DO rundll32 shell32.dll,ShellExec_RunDLL %%X
      My Computer


  9. Posts : 11
    Windows 7 Home Premium 32bit SP1
    Thread Starter
       #9

    Success! Thanks! I thought about that, but when I went to my batch file obviously %userprofile% has no spaces so I figured it was okay. My mistake!

    So that takes care of launching several programs. I still don't know how to easily quit them.
      My Computer


  10. Posts : 2,171
    Windows 7 Ultimate x64
       #10

    Yeah, it wasn't immediately obvious to me either when I looked at your batch line, but looking at the screenshot nailed it ('C:\Users\Andrew' instead of 'C:\Users\Andrew Williams\...'). Over the years I've gradually come around to making sure I use the quotes whether they're needed or not; you never know how a parameter will be expanded (including the *.* in your code). On top of that it's usually a pain in the rear to debug when they're missing when needed.

    Type taskkill /? in a command prompt. You can use some form of that in a batch file to kill your apps. Not sure if you'll be able to get your stop.bat as versatile or 'elegant' as your start.bat, but at least it'll be able to get it done with a single command.
      My Computer


 
Page 1 of 2 12 LastLast

  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 10:32.
Find Us