Yes. This can be done easily using the Windows Registry . You can open any desired third-party program by simply typing its name in the RUN field or the Start menu Search and press Enter .
You need to set the application path in the Windows Registry so that Windows can know about the application at runtime.
- Type regedit in the RUN or in the search field on the Start menu and press Enter. This will open the registry editor.
- Now go to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths
Now we need to create a new key in the "Application Paths" section. Right-click on the "Application Paths" button and select "Create → Key". Name the name of your application, as well as its extension, for example. My_Application.exe
Select the key created in step 3 and in the right panel, set the value "Default" to the full path to the application's EXE file, for example. C:\Program Files\My Application\My Application.exe
Again, in the right pane, create a new String "Path" value and set its value to the folder containing your application EXE file, for example. C:\Program Files\My Application\
What is it. Now you can start your application by simply typing its name in the RUN field or Start menu Search.
NOTE. If you want the finished registry script to run the task automatically, paste the following code into Notepad and save the file with the name "AskVG.REG" (including quotation marks).
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths] [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\My Application] @="C:\\Program Files\\My Application\\My Application.exe" "Path"="C:\\Program Files\\My Application\\"
You just need to replace the BOLD part of the above script with the correct application name and path. After saving the file, run it, and it will add the path to the program in the registry so that you can run it directly from the RUN and Start search fields.
Edit: Based on your comment, you can write the following action with C # code
source share