Run Windows Script package to run multiple files

I am trying to replace programs that run from the startup directory with a script package. The script package will simply warn me that the programs will be running, and I can either continue the script or stop it.

Here's the script, as I wrote:

@echo off
echo You are about to run startup programs!
pause 

::load outlook
cmd /k "C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE" /recycle
::load Visual Studio 2008
call "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"

Both of these commands will load the first program and wait until I close it to load the second. I want the script to load processes at the same time. How to do it?

Edit: when I use the start command, it opens a new shell with the line that I entered as the header. The modified script is as follows:

start  "C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE"
::load Visual Studio 2008
start "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"
+5
source share
3 answers

It works:

@echo off
echo You are about to run startup programs!
pause 

::load outlook
start /b "" "C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE" /recycle
::load Visual Studio 2008
start /b "" "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"
+9

START :

START "" "C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE"

, START . "" , .

+4

There is a command startthat will behave as if you clicked files in Explorer.

+2
source

All Articles