I have a Virtual Machine in Virtual PC 2007.
To start it from the desktop, I have the following command in a batch file:
"c:\program files\Microsoft Virtual PC\Virtual PC.exe" -pc "MY-PC" -launch
But that leaves a dos prompt on the host machine until the virtual machine shuts down, and I exit out of the Virtual PC console. That's annoying.
So I changed my command to use the START command, instead:
start "c:\program files\Microsoft Virtual PC\Virtual PC.exe" -pc JSTYONS-DELPHI -launch
But it chokes on the parameters passed into Virtual PC.
"START /?" indicates that parameters do indeed go in that location. Has anyone used START to launch a program with multiple command-line arguments?
@AlbertEin: Yes, I tried that. No luck.
@Mark Allen: Yes, tried that too. No error; it just leaves a blank dos prompt.
@Tim Farley: That worked. Thanks!
@Ferruccio: That is a better idea, with the bonus that I get a pretty icon instead of a little cog-in-a-box. "Answered" goes to Tim though, since he did answer the specific qstn.