Reputation: 41
As you know, Notepad++ can be run from command prompt.
My question is that how can I run the "Open"(CTRL+O) window from command prompt after running Notepad++?
Upvotes: 0
Views: 9217
Reputation: 36
C:\Program Files (x86)\Notepad++\notepad++.exe "C:\YOUR\DIRECTORY\tofile.txt"
or on 32 bit machine
C:\Program Files\Notepad++\notepad++.exe "C:\YOUR\DIRECTORY\tofile.txt"
Exclude the quotation marks obviously.
Upvotes: 0
Reputation: 65
Do you need to open the window itself?
Because if you need to open te program. you can do a simple CMD
"C:\Program Files\Notepad++\notepad++.exe"
to open and create a file you can do this i think. if you have writing permission in the directory. i cannot test this but i think this is the way to create a file
C:\Program Files\Notepad++\notepad++.exe File.txt
or
C:\Program Files\Notepad++\notepad++.exe -openSession <PathToYourFile>
Or do you need the Specific window?
Upvotes: 2