Heiko-6891 avatar image
0 Votes"
Heiko-6891 asked Heiko-6891 commented

UWP app start with arguments

I have a WPF UWP bridge app, which I want to place in the startup folder that starts the app hidden. When the user then starts the app, the already started app instance will be activated and shown.

So I want to set the following arguments to the shortcut file MyApp.lnk:

 explorer.exe shell:AppsFolder\MyName.MyApp_xxxxxxxxxxxxx!App hide

I added the 'hide' word to pass it as arguments for MyApp, but unfortunately the explorer.exe opens itself instead of MyApp.

Is there any way or an argument switch for explorer.exe so that I can pass MyApp and an argument for MyApp?

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

So you want to give arguments when you tried to launch it from a command line, right? You could take a look at this blog: Command-Line Activation of Universal Windows Apps. The blog gives an example of how to activate a UWP app from a command line and pass the app arbitrary command-line arguments

0 Votes 0 ·

@Heiko-6891 Any updates about this?

0 Votes 0 ·

Thanks for the tip. I will test it on occasion.

0 Votes 0 ·

0 Answers