UWP app start with arguments

Heiko 1,211 Reputation points
2022-06-17T14:15:42.897+00:00

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?

Universal Windows Platform (UWP)
{count} votes