Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 4 programs that I'd like to start by using only 1 script or shortcut. How can I achieve this? Is Powershell able to do that? I tried to do it using a .bat file but the script pauses until the program is stopped...

share|improve this question
up vote 7 down vote accepted

You can start multiple applications in a batch file without pausing using start:

start /d "C:\Program Files (x86)\Internet Explorer\" iexplore.exe
start /d "C:\Program Files (x86)\Mozilla FireFox\" firefox.exe

The above in a batch file will start both IE and FireFox together.

The /d indicates the working folder for the command and the last part is the command name.

If you specifically want to use Powershell you will need to call the System.Diagnostics library in .Net to launch the external process as follows:

[Diagnostics.Process]::Start('yourapplication','arguments')

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.