How execute a Windows application with cmd line parameters from Mac?

GiordanoS

Member
Hi all,
I want to ask how and if is possible execute a Windows application with command line parameters from Mac.
On my Windows VM I have an app, like MyProgram.exe that is able to do somenthing when I run it with some arguments, like
MyProgram.exe -doSpecial1
On Paralles Windows this works, what I want now is to launch MyProgram.exe from Mac with arguments.

I have read that I can use the command "prlctl exec". How should I use that? It works with arguments?
I ask because here, that was my first try, arguments doesn't works.
 
Hey, please try this solution and check how it works.
Hope that helps you
This works but I need to pass arguments to the lanched windows app.
In that tutorial I read that "NOTE: Parallels Desktop does not support using Windows applications arguments when launching them from the Terminal".

How if I need to pass arguments to the windows application?
 
It looks like VirtualBox guestcontrol makes it easier to pass command line arguments and environment variables to an application started on the guest.
Unfortunately, Parallels does not.
VBoxManage guestcontrol start [--exe] [--putenv][--unquoted-args]
Posting here because I think it only fair that Parallels be given a chance to fix their shortcomings.
Why does this matter? Automation - when you want a script, e.g. a shell script, on MacOS to be able to accept command line parameterrs, and pass such parameters to a script or other executable in the Windows guest.

More and more I regret having chosen Parallels instead of VirtualBox. I will switch as soon as possible, and I cannot recommend anyone purchase Parallels until such a basic flaw is fixed. At least not any programmer.

http://blog.andy.glew.ca/2016/12/passing-command-line-arguments-from.html
 
T
It looks like VirtualBox guestcontrol makes it easier to pass command line arguments and environment variables to an application started on the guest.
Unfortunately, Parallels does not.
VBoxManage guestcontrol start [--exe] [--putenv][--unquoted-args]
Posting here because I think it only fair that Parallels be given a chance to fix their shortcomings.
Why does this matter? Automation - when you want a script, e.g. a shell script, on MacOS to be able to accept command line parameterrs, and pass such parameters to a script or other executable in the Windows guest.

More and more I regret having chosen Parallels instead of VirtualBox. I will switch as soon as possible, and I cannot recommend anyone purchase Parallels until such a basic flaw is fixed. At least not any programmer.

http://blog.andy.glew.ca/2016/12/passing-command-line-arguments-from.html
Thank you for your reply.
Damn I hope that there is other method to pass command line arguments...
Again it's not clear for me if with the "prlctl exec" command, it's possibile pass cmd line arguments... can anyone from Paralles support answer to this? I can't buy an pro licence for one year only to try it...
Thanks
 
Again here.
Please can someone of the Parallels Support help?
An example: If I have an app in the Windows VM called bestApp.exe that need two arguments like "bestApp.exe -r "C:\PathFolder"
How I can run my app, on Windows, from Mac with arguments?
 
Again here.
Please can someone of the Parallels Support help?
An example: If I have an app in the Windows VM called bestApp.exe that need two arguments like "bestApp.exe -r "C:\PathFolder"
How I can run my app, on Windows, from Mac with arguments?

With prlctl exec you can call Windows apps from your host OS. For example with
Code:
prlctl exec "virtualized_windows_name" cmd.exe
you can start a CLI on your guest OS, or with
Code:
prlctl exec "virtualized_windows_name" taskkill /F /IM mspaint.exe
you can kill a running mspaint.exe directly.
 
Back
Top