Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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...

share|improve this question
Normally, adding a parameter to the shortcut should work, I think. Adding another programm launch maybe isn't the best idea, the command may get stuck on the first program. – Michael K May 17 '11 at 8:13
You could write the parameters to a file in each respective VM's hard drives via network shares, then place a script that reads the file on the VM's hard drive and calls the VM's iexplore with those arguments. Publish shortcuts to the scripts then instead of iexplore directly. – Huckle Feb 5 '12 at 1:10

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...

share|improve this answer

Manual Publishing using a script having parameters: "CommandLineSetting": 2[Allways Require] and "RequiredCommandLine": Param1 Param2 works; follow:

share|improve this answer

You must log in to answer this question.