0

Closed. This question is off-topic. It is not currently accepting answers.

This is not about an official Ubuntu flavor. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow.

Closed 2 days ago.

(Private feedback for you)

I have both notepad++ and Cgywin64 installed on Windows 10, they all run correctly, my notepad++ path on Windows is "C:\Program Files\Notepad++\notepad++.exe", and in Cgywin64 is "cgydrive/c/Program\ Files/Notepad++/notepad++.exe", I want to input "notepad++ filename", then notepad++ would open the file "filename", just as the "notepad" style - when I input "notepad filename", the editor notepad would open my file "filename", and I can edit in it.

I have tried "$ export PATH=$PATH:"/C/Program Files/Notepad++/" "and "$ export PATH=$PATH:"cgydrive/C/Program Files/Notepad++" " in Cgywin64, they all didn't work, and I could use "notepad++" in CMD of Windows 10.

How to do it? I have searched on the net, while there was no concrete solution for this.

4
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Dec 28, 2021 at 10:25
  • My guess is it should be /cygdrive/c instead of /cygdrive/C. (Also not that it's cyg(win), not cgy(win).)
    – Tom Yan
    Dec 28, 2021 at 11:30
  • Right, thanks for your remind, since I now could run it as I intend to, so I would not try it now.
    – MianQi
    Dec 29, 2021 at 10:28
  • I tried justnow, " export PATH=$PATH:"cygdrive/c/Program Files/Notepad++ " didn't work.
    – MianQi
    Dec 30, 2021 at 0:46

1 Answer 1

0

I found a solution - Install notepad++ again under Cygwin64's bin folder, and type this line each time open Cgywin64:

$ export PATH=$PATH:"/bin/Notepad++"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .