Link to home
Start Free TrialLog in
Avatar of dvplayltd
dvplayltdFlag for Bulgaria

asked on

Windows 2008:Question about autostart with BAT file.

Hi experts!

I need to write BAT file which to be executed on Windows 2008 Server when it start. Here you my code

set PF=%ProgramFiles(x86)%
start "" /wait Sleep.exe 3
cd "%PF%\Microsoft Virtual PC\"
"%PF%\Microsoft Virtual PC\Virtual PC.exe" -pc "Test Sofia" -launch  -minimize –singlepc
REM Next Command is not executed
"%PF%\Microsoft Virtual PC\Virtual PC.exe" -pc "Test Sofia" -launch  -minimize –singlepc

The problem is that last row (start of second virtual machine) is not executed. I guest the problem is that first virtual machine do not return execution in BAT file and I’m afraid there no such options in MS Virtual PC. So I should use some options in BAT file which to start this problem and to not wait for it to return execution. Do I have such option ?

P.S: And at all, what is recommended way for Windows 2008 server to start programs after user log on system? Does have new technology better than BAT files?
ASKER CERTIFIED SOLUTION
Avatar of bcdudley
bcdudley
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dvplayltd

ASKER

10x. congratulation for your first points! :-)
Thank you.