• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Creating a batch file to open two programs then close

Parasitic

Diamond Member
So I have Skype and this add-on USB VoIP device together. In order to use Skype with that USB phone thing and have it properly configured I need to run the handset program first, followed by the Skype executable. I'm not a fan of cluttering and I don't like the programs to start when I start Windows (since I don't use Skype on a daily basis).

So I thought I'd just create a DOS batch file and link a shortcut to it on my desktop, and have it open both files in sequence. Sounds easy enough to do.

Now the problem.

I can run the executables in command line, no problem. It allows those two programs to run in the background; but then when I put them in a batch file form, the batch will not continue until one program is opened then closed (by me, manually).

So I thought that maybe the background switch "&" would do the trick, and nope, it doesn't.
Now I seek the help of AT computer professionals to help me craft this batch file that opens these two programs without waiting for the first one to close. Anyone?

This is what I have so far (sk.bat):
@C:\Progra~1\Middle~1\CmSkype.exe &
@C:\Progra~1\Skype\Phone\Skype.exe &
@exit
 
Use the Start command.

try this:

start C:\Progra~1\Middle~1\CmSkype.exe
start C:\Progra~1\Skype\Phone\Skype.exe
 
Originally posted by: juktar
Use the Start command.

try this:

start C:\Progra~1\Middle~1\CmSkype.exe
start C:\Progra~1\Skype\Phone\Skype.exe

Mmmm...for some reason that does work. What's the difference, really though, between not using start and otherwise?
 
its just what the start command does by default. It doesnt really have any sort of required parameters for queueing or whatnot, just to start and go on.
 
Originally posted by: Parasitic
Originally posted by: juktar
Use the Start command.

try this:

start C:\Progra~1\Middle~1\CmSkype.exe
start C:\Progra~1\Skype\Phone\Skype.exe

Mmmm...for some reason that does work. What's the difference, really though, between not using start and otherwise?

Start launches the process and then exits leaving the process running. Without it you'll start a process and wait for it to complete before moving to the next line it a batch file.

Try the following 4 commands from a command line to see what I mean:

cmd
exit
start cmd
exit
 
Back
Top