Windows 10 Subsystem: bash.exe not found.

  • Hi,

    I’ve installed the Ubuntu Bash on Windows 10 and it’s works just fine.
    Not I’m trying to run my scripts directly from Notepadd++ using:

    C:\Windows\System32\bash.exe -c “~/.local/bin/ansible-playbook -k /mnt/c/playbook/$(FILE_NAME)”

    I’m able to run this command from prompt without any problems, but when I try to Run from Notepadd++ it says it can’t find the file “bash.exe”.

    Does anyone already tried to do something similar ?

    Any ideas ?


  • My idea is that you’re using 32b NPP in 64b windows, so you’re getting the system32 vs syswow64 windows-lies-to-you (excuse me, File System Redirector).

    If you are in 32b NPP (? > Debug Info will say Notepad++ v7.5.6 (32-bit)), then try running c:\windows\sysnative\bash.exe ... instead.

    If that’s not it, please supply the Debug Info, along with other information that might be relevant to help us debug your problem.

  • Hi Peter,

    Indeed I was running 32bit.I just updated it to 64bit and NPP now find the bash.exe on the dir %WINDIR%\System32 with no problem.

    Thank you for the help.


Log in to reply