[Bug] cannot launch Notepads from the command line
See original GitHub issueDescribe the bug The readme states:
- Launch from the command line or PowerShell by typing:
notepads
ornotepads %FilePath%.
However, I cannot use notepads
to launch the app from the command line or PowerShell or from the Run window. If I try, I get an error message saying that Notepads can’t be found.
To Reproduce
You may want to try each option. Every option gives me the same error.
- Install Notepads (either through the Microsoft Store or from the .msixbundle on the Releases page
- Open cmd, or open PowerShell, or press Win+R.
- Type
notepads
and press Enter.
Expected behavior
The Notepads app ought to launch and take focus. If it’s already open, it ought to appear on top and take focus.
Screenshot
Desktop (please complete the following information):
- Windows 10 1909 18363.1256
- Notepads v1.4.2.0
Additional context
The ability to launch the app and open files from the command line is important to me because I want to bind the app to a keyboard shortcut, and the first 10 apps on my task bar cannot be displaced. I’m impressed by Notepads so far and would like to use it, but this lack of command-line support is a potential deal-breaker. Please help!
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
The app will be installed in that folder regardless of which installation method you use. The path I provided is where Windows creates a proxy .exe file for apps you have enabled App Execution Alias, if you disable Execution Alias, then the .exe will be deleted. This is how modern apps can be enabled/disabled by users from launching from command line instead of the old days when you have to modify path variable repeatedly. The issue in your end was the path where Windows creates execution alias wasn’t in
Path
variable. (by default it is, so I don’t know what happened at your end. Either you directly modified the variable and removed it or some program you used did that.)I have success to report, but here are a few notes.
The app was installed through the Microsoft Store, and the path was different from what you provided. It was put in a subfolder of
C:\Program Files\WindowsApps
, as noted previously.But, I did get the
notepads
to work in PowerShell. I addedC:\Users\dave.ostroske\AppData\Local\Microsoft\WindowsApps
in my user variable Path. After that, I could launch Notepads from ps, cmd, and Win+R successfully.