How can I open up a file in Notepad++ from the Powershell command line?
When you want to read the entire contents of a text file, the easiest way is to use the built-in Get-Content function. When you execute this command, the contents of this file will be displayed in your command prompt or the PowerShell ISE screen, depending on where you execute it.
2) Just add your Notepad++ folder to the Path of the system, and then you can just type "notepad++ c:\path\file. txt` at the command prompt. Doing that should allow you to run read file. txt and/or read c:\pathto\file.
Inside powershell I can simply use the start and get general results
to open a python file with notepad++ here is what I did.
Start notepad++ ex1.py
this will start notepad++ and load the file ex1.py assuming you are in the same directory as the .py file. You can change that by adding the full path name
start notepad++ c:\users\you\desktop\files\ex1.py
Hope this helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With