Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to launch a 2nd Skype instance from a Batch file. I have done that successfully with the run window:

"C:\Program Files (x86)\Skype\Phone\skype.exe" /secondary

But for the life of me I cannot figure out how to do the same from a Batch file. Here is a list of my failed attempts:

  1. Nothing happens here. Command window opens and stays open:

    start "C:\Program Files (x86)\Skype\Phone\skype.exe /secondary"

  2. Command window opens and closes:

    start "C:\Program Files (x86)\Skype\Phone\skype.exe" /secondary

  3. Error message "Secondary does not exist"

    start "C:\Program Files (x86)\Skype\Phone\skype.exe" "/secondary"

What am I doing wrong?

share|improve this question
    
how can we do it in linux if user is accessing ubuntu box using thin client? –  Satya Jan 25 '12 at 18:17

2 Answers 2

up vote 4 down vote accepted

Don't use the "start" command.

"C:\Program Files (x86)\Skype\Phone\skype.exe" /secondary

----- edit -----

or

start "Some Title" "C:\Program Files (x86)\Skype\Phone\skype.exe" /secondary

The title is required.

share|improve this answer
    
Duh! How simple can it be? Thanks, mate. Do you know how to make that command line windows disappear after running the batch file? –  user 99572 is fine Jan 25 '12 at 18:28
    
I forgot... start requires a title.... /facepalm.... and you're right that you need start to fork the process away from the cmd prompt. –  TheCompWiz Jan 25 '12 at 18:41
    
Thanks mate for clearing this up. –  user 99572 is fine Jan 25 '12 at 19:51

Open notepad and type the following line, save this file as a .bat (for 32 bit windows)

start "Some Title" "C:\Program Files\Skype\Phone\skype.exe" /secondary

Open notepad and type the following line, save this file as a .bat (for 64 bit windows)

start "Some Title" "C:\Program Files (x86)\Skype\Phone\skype.exe" /secondary
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.