Page 1 of 1

start multiple exe in windows xp batch file

Posted: 07 Aug 2008 00:09
by jwsnl
hi all,

please think with me about the following:

instead of loading all kinds of exe's and services i want my computer to run a batch file during startup asking me what services to start at the end of the boot cyclus so i'm able to load just these services that i actually need.

the questioning and timing is solved the challange i face now is to start all required exe's from 1 batch file.

for example when i'm offline i want fisrt my vodafone application to load and afterwards to load a secure client, further i want to be able to do or not start an application to mount a webbased drive and perform some other mapping on my actual needs and beings at that moment.

I found the ' start' command instead of the 'call' command but now all diffrent windows are opened once the service is started


thanks for your comments,

Jan-Willem

Posted: 07 Aug 2008 08:29
by jwsnl
Please find attached my draft batch file:
@echo off
rem pause for X seconds
echo.
echo Dag Jan-Willem,
echo even wachten om de standaard services te laden
set X=10
call telaf.bat
rem pause

rem vodafone
:1000
echo wil je Vodafone Connect laden?
set choice=
set /p choice= j(a) of n(ee)?
echo.
rem if '%choice%'=''goto 1000
echo '%choice%'
if '%choice%'=='j' goto 1100
if '%choice%'=='n' goto 2000
goto 9000
:1100
start "C:\Program Files\Vodafone\Vodafone Mobile Connect\VMConnect.exe"
rem end vodefone

rem XS4ALL webdrive
:2000
echo wil je de XS4ALL webdrive laden als W:\ ?
set choice=
set /p choice= j(a) of n(ee)?
echo.
if '%choice%'=='j' goto 2100
if '%choice%'=='n' goto 3000
:2100
start /b "C:\Program Files\XS4ALL-webdisk\wdfsctl.exe"
rem end XS4ALL webdrive

rem drive
:3000
echo wil je de NL root directory laden als I:\ ?
set choice=
set /p choice= j(a) of n(ee)?
echo.
if '%choice%'=='j' goto 3100
if '%choice%'=='n' goto 4000
:3100
start /b xyz.bat
rem end drive

rem SecureRemnote
:4000
echo wil je de SecureRemote client laden ?
set choice=
set /p choice= j(a) of n(ee)?
echo.
if '%choice%'=='j' goto 4100
if '%choice%'=='n' goto 5000
:4100
start /b "C:\Program Files\CheckPoint\SecuRemote\bin\SR_GUI.exe"
rem end SecureRemote