Reputation: 23
@ECHO OFF
title Skype secondary Instance
echo A second instance of Skype will be started.
pause
"C:\Program Files\Skype\Phone\Skype.exe" /secondary
exit
After running this BAT script the command windows does not close until the Skype program is not closed. Could you tell me why? And how to close the command window after the program has started.
Upvotes: 1
Views: 79
Reputation: 130819
Use the START command.
start "" "C:\Program Files\Skype\Phone\Skype.exe" /secondary
Although, I should think you don't even need a batch file. You could simply create a shortcut with "C:\Program Files\Skype\Phone\Skype.exe" /secondary
as the target.
Upvotes: 1