How to start a MAC app from command line in a Windows VM and pass a file from the vM?

Discussion in 'Windows Virtual Machine' started by PeterA23, Dec 8, 2021.

  1. PeterA23

    PeterA23 Member

    Messages:
    77
    In a Windows 10 Parallels VM, which is is the command line to start a Mac app?
     
  2. CristianI1

    CristianI1 Bit poster

    Messages:
    1
    You have to use a bat like this
    @"C:\Users\cristian\AppData\Roaming\Parallels\Shared Applications\Visual Studio Code (Mac).exe" %~f1

    %~f1 is to get the full path of the file, which is required to work
     
  3. PeterA23

    PeterA23 Member

    Messages:
    77
    Thanks, Cristian! I wasn't aware of the Shared Applications folder. Now it's really easy to show a document in a Mac app from Windows:
    "C:\Users\Peter\AppData\Roaming\Parallels\Shared Applications\TextEdit (Mac).exe" "C:\docs\AText.txt"
     

Share This Page