Command Line Options

Discussion in 'Windows Virtual Machine' started by MichaelLK, Nov 11, 2010.

  1. MichaelLK

    MichaelLK Bit poster

    Messages:
    2
    Sorry if this is old hat, but I'm puzzled and searching the forums didn't resolve my puzzlement.

    I'm trying to pass command line options from the Mac OS to a Windows .exe

    In particular, I've got an executable called WinBUGS14.exe
    It takes an argument like this in windows:
    WinBUGS14.exe /PAR script.txt

    I would like to pass those two arguments (/PAR and a file name) to the .exe from the Mac command line. Actually, I want to pass the arguments from a Matlab script running on my Mac, and I'm trying to use the 'open' command, but it won't pass the arguments.

    I've tried using a shortcut BackBugs14.lnk that invokes WinBUGS14 with the appropriate arguments. It works fine if I launch it from Windows. When I 'open BackBugs14.lnk' though, it just shifts the focus the Parallels Desktop.

    I'm using Parallels 5 for Mac in Coherence mode if that makes a difference.

    thanks
     
  2. Frederic Puhan

    Frederic Puhan Member

    Messages:
    38
    How are you addressing the guest machine from Terminal.app? I would think you need to access the guest via Remote Desktop or telnet (or ssh). No matter how you are doing it, you need to make sure the guest machine is set up to be accessible via remote control.
     
  3. MichaelLK

    MichaelLK Bit poster

    Messages:
    2
    Thanks, but I don't follow

    I address the virtual machine by having associated .exe files with Windows Explorer, and then using the 'open' command as in

    open WinBUGS14.exe

    Are you suggesting that I should make a script that ssh's to the virtual machine and executes the command natively? That would seem to make sense, but I'm not sure what it would look like.

    thanks,

    m
     
  4. joevt

    joevt Forum Maven

    Messages:
    1,208
    Try this: create a .bat file (text file) with the Windows command line, then on the Mac side, open the .bat file with "Windows Explorer.app" from the virtual machine's Windows Applications folder in ~/Applications/.
     

Share This Page