Launching a Desktop Application with a Metro-style app

后端 未结 5 894
温柔的废话
温柔的废话 2020-11-30 04:20

Is there a way to launch a desktop application from a Metro-style app on Windows 8? I\'m trying to create some simple shortcuts to desktop applications to replace the deskto

5条回答
  •  孤街浪徒
    2020-11-30 04:53

    I love simple things, so my solution was to use this:

    Process.Start("explorer", "shell:AppsFolder\Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe!App")
    

    This will start the "new" Sticky Notes coming with Anniversary Update to Windows 10, but it works with all other "Metro" apps I tested. To find the name of the metro app, from Windows Explorer you have to find it in shell:appsfolder using the AppUserModelId column.

提交回复
热议问题