BeerDrinkingMonkey

Launching application with Run command.

4 posts in this topic

Beginner user here.  I tried searching around however since I am new to this application I wasnt sure of the paremeters to use to find what I am looking for or the correct forum.

I want to open an application, when I look at the properties of the shortcut for the application the target line appears

"C:\Program Files (x86)\<vendor name>\<application folder>\<version>\<application>.exe" -product "<application tag>"

I have tried using the Run command and the file path however I am unsure how to pass that -product "<application tag>" component in the code.  In my testing if I dont use the quotes around the application tag I get an error message from the program and it doesnt open.  If I put them back in I get no error messages however nothing happens.

Any questions please let me know.

Thanks!

Share this post


Link to post
Share on other sites



If your actually using Run() then you would put the full string shown in the shortcut.

If your using ShellExecute, then the second parameter is where you would put the -Product stuff.

 

 


Share this post


Link to post
Share on other sites

Got it to work through ShellExecute.  Thanks BigDaddyO and Jos

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now