So when I am writing code, I use notepad++ and when I am done, I copy-paste it to plain old notepad because I use Cygwin and notepad is the only text editor that I know how to access from the shell. Could someone teach me how to go from the prompt directly to N++?

  • Are text files automatically opened with Notepad or Notepad++ ?
    – matzeri
    Dec 14, 2021 at 15:04

1 Answer 1


To launch notepad++.exe with the shell path to the file converted to a proper windows path, you may use the following script:

/cygdrive/c/Program\ Files\ \(x86\)/Notepad++/notepad++.exe `cygpath.exe -w "$*"`

The path to notepad++.exe may vary.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.