Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

How to Run an App from Anywhere on Your Computer

October 12, 2022
in Blog
0
ADVERTISEMENT

Table of Contents

Wouldn’t it be cool, if we were able to launch an app that was saved in a particular folder in say E:\Apps\myapp.exe drive be runnable even outside that folder or anywhere you want by typing just the exe name and not including the entire path referencing to it.

And anywhere means, you can launch your application

  • From Start menu (shortcut – Windows key).
  • From Run command dialog box (shortcut – Windows + r).
  • By typing application name in Windows Address bar of any drive/ folder on your computer.
  • By typing application name from a command prompt opened from any drive/ folder directly without worrying to change the directory.

For demonstration purposes, we have an application with the name myapp. The output path of this application is E:\Apps\myapp.exe.

Bg1917

We will be basically doing two things here to let our computer know about this application.

  • Registering the path to exe in the system registry.
  • Registering the path to exe in PATH environment variable.

Registering the path to exe in the system registry

1. Type regedit in the search box then open the Registry Editor.

Regedit

2. Navigate to the following location. You can copy the location then paste into the address bar in the Registry Editor.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths
Bg1918

3. Next, right-click on App Paths and create a new key.

Bg1919

4. Enter the name of the key is your app name myapp.exe

Bg1920

5. On the right side, you see the (Default) value name. Let’s double click on it, then enter the path of your app as value data.

Bg1921

6. Now add one more string value, by right on the blank | New | String Value.

Bg1922

7. Name the value Path and set its data value to the exe’s containing folder followed by a semicolon. In my case, it is E:\Apps.

Bg1923

You’re almost done! These above steps will enable your application to be accessible via the Windows Address bar of any drive and folder, start menu, and Run box.

Bg1924
ADVERTISEMENT

Registering the path to exe in PATH environment variables

Now, perform just this one last step to make your application accessible from any command prompt anywhere.

1. Type env in the search bar then open Edit the system environment variables.

Env10

2. In the System Properties window, select Environment Variables… button.

Bg1913

3. In the Environment Variables window, under System variables select Path then click Edit button.

Bg1914

4. Now, click New then enter the folder of your application. In this case, we add E:\Apps. Click Ok twice to save the changes.

Bg1925

That’s it! There you go. You just made your application a global star on your computer. You can call it from anywhere now with just the name.

ADVERTISEMENT
5/5 - (1 vote)
Previous Post

How to Run BTFS from Anywhere in Command Prompt or PowerShell

Next Post

How to Download and Install Chocolatey on Windows 10

Related Posts

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024
Ftr19

How to Fix Windows Cannot Read the ProductKey From the Unattend Answer File in VirtualBox

July 26, 2024
Ftr25

How to Update Windows Terminal in Windows 10/11

July 26, 2024

How to Disable The Beep Sound in WSL Terminal on Windows

July 26, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory