PS2EXE icon indicating copy to clipboard operation
PS2EXE copied to clipboard

Passing Paremeters to EXE

Open kapils95 opened this issue 3 years ago • 1 comments

I am trying to pass parameters to my executable powershell which is done by your project, But there is an issue while passing the same. It can not take parameters normally, It treat my parameters as a path or an application(e.g. If I pass an Image path to exe it open that image). So, Is there any way to take me out from this please suggest. Thanks

kapils95 avatar Jun 21 '21 12:06 kapils95

The arguments from the exe will be parsed as $args array in powershell. e.g. to access the first parameter use $args[0] in your PowerShell script

rzander avatar Jun 21 '21 16:06 rzander