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?
Who is Participating?
bcdudleyConnect With a Mentor Commented:
Create 2 seperate batch files. One will contain the launch command for server 1, the other for the second server. Create a third batch file with a call command that runs the 2 batch file or you can just run both bat files at startup.
dvplayltdAuthor Commented:
10x. congratulation for your first points! :-)
Thank you.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.