windows - How do I open a second Skype instance with a Batch file?

  • user 99572 is fine

    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?

  • Answers
  • TheCompWiz

    Don't use the "start" command.

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

    ----- edit -----


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

    The title is required.

  • Nifle

    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

  • Related Question

    windows - Batch script halts after Thunderbird is opened
  • Željko Filipin

    I want to be able to open Thunderbird from a batch script in Windows. I can do it just fine from command line:

    C:\>"C:\Program Files\Mozilla Thunderbird\thunderbird.exe"

    If I create a batch script that looks like this:

    "C:\Program Files\Mozilla Thunderbird\thunderbird.exe"

    and execute it from the command line:

    C:\>"C:\Program Files\Mozilla Thunderbird\thunderbird.exe"

    Thunderbird opens, but the script halts (it does not exit).

    If I close Thunderbird by hand, the script exits.

    It has been a while since I have used batch scripts. Am I doing something wrong?

    Edit: script exits just fine if Thunderbird is already opened. Strange.

  • Related Answers
  • admintech


    start /d "C:\Program Files\Mozilla Thunderbird" thunderbird.exe

  • David Spillett

    As Systech suggests, the start command is what you are looking for to run the program and not wait for it to terminate before continuing.

    The reason you see different behaviour when Thunderbird is already running is that it is only allowing one copy to run. The second copy detects the first and gives it focus before going away (so effectively immediately returning control to your batch script). If you were calling an application that allows multiple instances of itself to run (something as simple as notepad would do if you want to test this to see for yourself) you would not see that difference in behaviour.

  • ChrisF

    The reason the script stalls is because it's waiting for Thunderbird to complete and return control to the batch file.

    You need to use the "/d" option as Systech suggests.

  • daddy-o

    FWIW this doesn't work properly in windows7. Even with start /b, Thunderbird terminates when the controlling shell window terminates.

    That said, once you've got T'bird running, you can open other subwindows properly (e.g., thunderbird -addressbook) from the command line.

  • daddy-o

    So, if you want to run T'bird from a windows command line or batch file, I've figured out how to do it. As you probably have noticed, using the start command with any combination of parameters doesn't do what you really want.

    The first step is to create a Windows Scripting Host command file. Put this in the same directory as your T'bird executable, can call it something like tbird.wsf:

    <script language="VBScript">
    Set WshShell = CreateObject("WScript.Shell")
    cmds=WshShell.RUN("cmd /c thunderbird.exe", 0, False)

    once you have that file, then invoke it from command line or batch file like this:

    cscript tbird.wsf

    Of course, this will leave an extra process hanging around your system that won't die until you close T'bird down. But this does achieve what I think lots of people want.

    davodavo -- check me out on