How to run a Windows Apps shortcut in a batch file?

Anonymous
2023-12-18T14:14:19+00:00

Hi,

I'm trying to open a couple of programs (OBS and the Minecraft Launcher) in a batch file that I will then make a shortcut for so I can launch them with one press of a key on my Num Pad. I was wondering how I could open the Minecraft Launcher in this batch file? The issue that I am having with this is that I cannot copy the path of the launcher file. I have the OBS file put in the batch file, but I just can't figure out how to open the Minecraft Launcher using the batch file.

Windows for home | Windows 10 | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Rodrigo Queiroz 71,670 Reputation points Independent Advisor
    2023-12-18T14:56:43+00:00

    Hi,

    I'm Rodrigo and I'll help you.

    Press Windows + R, type shell:AppFolder and press enter. On the folder, locate the Minecraft Launcher, right click it an select "Create shortcut". It will create a Desktop shortcut.

    On the batch file, point it to run the UWP app shortcut from the Desktop.

    Example: start %userprofile%\Desktop\Xbox.lnk

    (.lnk is the shortcut extension)

    5 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-12-18T15:10:08+00:00

    Thank you for

    A. Responding SUPER fast

    B. Solving my issue

    1 person found this answer helpful.
    0 comments No comments
  3. Rodrigo Queiroz 71,670 Reputation points Independent Advisor
    2023-12-18T15:37:21+00:00

    Great! Glad that it solved your issue.

    1 person found this answer helpful.
    0 comments No comments