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

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
 
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"
 
Back
Top