0

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++?

enter image description here

Akif Çelebi
  • 31
  • 2
  • 7
  • 1
    no chance to do this with batch (alone). You need some other language. [here is an example](http://stackoverflow.com/a/17050135/2152082) – Stephan May 12 '17 at 14:31

2 Answers2

2

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?

Arukaito
  • 65
  • 9
0

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.

  • That's the thing Aaron. I want to open that window from command prompt. After that, I will choose the text file myself from window (not from command prompt). – Akif Çelebi May 12 '17 at 14:25
  • yeah unfortunately i dont think its possible since its an embedded process within the program notepad++ itself so it requires Notepad++ resources to be running and cant open it individually, of course i could be wrong – Aaron Joyce May 12 '17 at 14:54
  • yeah unfortunately i dont think its possible to run on its own since its an embedded process, what you could try like mentioned above by Stephan is a batch program to do it for you – Aaron Joyce May 12 '17 at 14:56