windows - Using the "start" command with parameters passed to the started program -


i have virtual machine in virtual pc 2007.

to start desktop, have following command in batch file:

"c:\program files\microsoft virtual pc\virtual pc.exe" -pc "my-pc" -launch 

but leaves dos prompt on host machine until virtual machine shuts down, , exit out of virtual pc console. that's annoying.

so changed command use start command, instead:

start "c:\program files\microsoft virtual pc\virtual pc.exe" -pc my-pc -launch 

but chokes on parameters passed virtual pc.

start /? indicates parameters indeed go in location. has used start launch program multiple command-line arguments?

start has peculiarity involving double quotes around first parameter. if first parameter has double quotes uses optional title new window.

i believe want is:

start "" "c:\program files\microsoft virtual pc\virtual pc.exe" -pc my-pc -launch 

in other words, give empty title before name of program fake out.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -