7

Does anyone know a way to pass command line parameters to virtualized programs inside an XP Mode VM?

I have a VM with Internet Explorer6 installed (and another with Internet Explorer7), and using the shortcut publishing functionality I can launch those from the host OS (Windows 7). But I don't want to just launch them, I want command line parameters to them.

The end goal here is that I want to use a Firefox Extension provide "View in Internet Explorer6", "View in Internet Explorer7" and "View in Internet Explorer8" context menus for a page. The native one is easy, as it would just call "iexplorer.exe %1" where %1 is replaced with the current URL, like any old shortcut. It's passing to the VM apps that's tricky...

I tried just adding another parameter to the shortcut I have (which launches VMSal.exe) but that doesn't work...

studiohack
  • 13,477

2 Answers2

1

Either pass it on through a VBscript, start cmd and run it there or use a batch file in XP mode.

VMSal.exe does not support parameter passing...

Glorfindel
  • 4,158
-1

Manually publish the VM using a script with the following parameters:

"CommandLineSetting": 2[Always Require]
"RequiredCommandLine": Param1 Param2 works

Follow: Publishing Virtual Applications in Windows Virtual PC

phuclv
  • 30,396
  • 15
  • 136
  • 260
Ujjwal Singh
  • 2,498
  • 1
  • 25
  • 28