Method to open any Windows 10 Apps from command line

Page 3 of 3 FirstFirst 123

  1. Posts : 68,920
    64-bit Windows 11 Pro for Workstations
       #21

    For example:

    1. Right click on desktop, click on New, and click on Shortcut.

    2. Type microsoft-edge: for the location, and click on Next.

    3. Type a name you want, and click on Finish.
      My Computers


  2. Posts : 10
    Windows 10 Pro (x64)
       #22

    Brink said:
    For example:

    1. Right click on desktop, click on New, and click on Shortcut.

    2. Type microsoft-edge: for the location, and click on Next.

    3. Type a name you want, and click on Finish.
    Oh I see, it has to be done in the form of a web shortcut. I was creating a file shortcut to the main executable and placing the command in the target box which is why it wasn't working before. Anyway thank you for helping me
    Last edited by WinXUser78; 14 May 2017 at 00:24. Reason: Fixing Typos
      My Computer


  3. Posts : 68,920
    64-bit Windows 11 Pro for Workstations
       #23

    You're most welcome. :)
      My Computers


  4. Posts : 1
    Windows 10
       #24

    After step 4, an easier option is to Shift + Right-Click on the shortcut and select Copy as Path. Then just paste the path into a script.

    benny10033 said:
    Hi everyone, I am here to share how to open any Windows 10 Apps from command line.

    1. Open
    Code:
    shell:AppsFolder
    2. Find your app
    3. Right click and choose "Create Shortcut"
    4. Yes, placed the shortcut on desktop
    5. Right click the shortcut and choose "Properties"
    6. Take a look on the Target Type
    7. Open powershell (by opening start and type powershell)
    8. Type
    Code:
    get-appxpackage > 123.txt
    9. Win-key + r then put "%UserProfile%" in the box and enter
    10. Open 123.txt
    11. Find the PackageFamilyName in the txt that matches with the Target Type you from the properties (You can use ctrl + f)
    12. Browse to the InstallLocation corresponded to the PackageFamilyName
    13. Open the AppxManifest.xml
    14. Look for "Executable=" for the app you want. (As some app package contains more than one app, such mail and calendar are under the same packetage)
    15. On the same line, find the ID of the app
    16 Then your command line is :
    Code:
    explorer.exe shell:appsFolder\put-your-PackageFamilyName-here!put-your-app-ID-here
    Such as mail:
    Code:
    explorer.exe shell:appsFolder\microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.mail
                                  ^Here is the PackageFamilyName                   !^Here is the app ID
      My Computer


  5. Posts : 1
    Windows 10 Home
       #25

    Thank you!!!
      My Computer


  6. Posts : 76
    Windows 10 x64 Pro
       #26

    Is it possible to launch them minimised? For example, it seems the simple command: "start Skype:" is now enough to launch an app. Tried "start /min Skype:", it opens the app but not minimized.
      My Computer


  7. Posts : 16
    Windows 10 64bit
       #27

    I'm hoping someone will see this. I can't get this to work for the new OneNote UWP app. I followed the directions perfectly. Instead of starting OneNote, it just opens Windows Explorer in the special Documents folder.

    This is the command-line I'm using that doesnt work:
    Code:
    explorer.exe shell:appsFolder\Microsoft.Office.OneNote_16001.11901.20096.0_x64__8wekyb3d8bbwe!microsoft.onenoteim
    Could someone please tell me what I'm doing wrong?

    EDIT: Nevermind, I figured it out:
    Code:
    explorer.exe shell:appsFolder\Microsoft.Office.OneNote_8wekyb3d8bbwe!microsoft.onenoteim
      My Computer


  8. Posts : 1
    Windows 10
       #28

    AmigaRoots said:
    Is it possible to launch them minimised? For example, it seems the simple command: "start Skype:" is now enough to launch an app. Tried "start /min Skype:", it opens the app but not minimized.
    This frustrated me for years until I learned that the first argument for the start command is the window title. Try this
    start "" /min Skype:

    The documentation doesn't really say it's required or not, but believe me - it is expecting a title if you're passing arguments. The blank "" title doesn't even affect the programs you start, only command console.
      My Computer


  9. CDA
    Posts : 4
    Win 10 Pro V-20H2
       #29

    Thank You benny10033, Was able to add Window Mail App to my right click and create a .reg file to add and remove It
    for future use
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:25.
Find Us




Windows 10 Forums