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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dvplayltdAuthor Commented:
10x. congratulation for your first points! :-)
Thank you.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.