Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open Notepad++ from PowerShell

How can I open up a file in Notepad++ from the Powershell command line?

like image 816
Concerned_Citizen Avatar asked Feb 14 '13 21:02

Concerned_Citizen


People also ask

How do I open a text file in Windows PowerShell?

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.

How do I open a Notepad ++ file in PowerShell?

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.


1 Answers

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!

like image 120
Taku_ Avatar answered Sep 23 '22 13:09

Taku_