Initiating .bat or command from Terminal or AppleScript

Discussion in 'Windows Virtual Machine' started by jbarts, Jul 4, 2012.

  1. jbarts

    jbarts Bit poster

    Messages:
    3
    Is it possible, using either Terminal or AppleScript, to instruct the Windows VM to run a .bat file or execute a Command Prompt command directly? My specific need is to disconnect the Windows VM from my VPN using a command initiated on the Mac side. The Windows Command Prompt command for this is "rasdial /disconnect" and I can execute that on the Windows side just fine, and I've even drawn up a little .bat file that will do the same. The trick is that I'd like to initiate that from the Mac side, so that I can incorporate that command into a sleep/shutdown sequence that does some other housekeeping chores already.

    Alternatively, perhaps there is a "prlctl" command for this that I haven't identified. But, executing something on the Windows side from the Mac side has a lot of other interesting potential. Any help appreciated.
     
  2. jbarts

    jbarts Bit poster

    Messages:
    3

Share This Page