-1

I'm excited about the possibility of having a decent command-line interface on MS Windows using bash, I haven't installed windows10 yet though. In bash in windows would I be able to run windows command-line programs by calling them in bash?

Could I tell bash to run a windows program?

5
  • You should update your question to make it clear your using a Insider Preview of what will be Version 1608. Worth pointing out that Bash in general cannot launch Windows programs. Bash is only available to the Ubuntu on Windows environment.
    – Ramhound
    Jul 14, 2016 at 15:14
  • @Ramhound. "Bash is only available to the Ubuntu on Windows environment": Correction - or cygwin, gitbash, msys, ... all of which will run Windows programs.
    – DavidPostill
    Jul 14, 2016 at 15:17
  • 1
    @DavidPostill - I suppose in the context, of programs like Cygwin, my second setence is incorrect. In the context of this question, I presume the author is talking about the Ubtunu on Windows feature.
    – Ramhound
    Jul 14, 2016 at 15:36
  • like 3 years ago, I knew a guy who installed bash on XP, and got that mad functionality in Windowz CMD. I thought bash as a CLI on windows would offer that. Im looking now at cygwin.
    – j0h
    Jul 15, 2016 at 20:23
  • If someone wants to post Use cygwin, it'll do what you want, I'll mark this as solved.
    – j0h
    Jul 16, 2016 at 2:01

1 Answer 1

3

I have not personally installed it, but taking an excerpt from this article, it looks like no:

Remember, software you install in the Bash shell is restricted to the Bash shell. You can’t access it from the Command Prompt, PowerShell, or elsewhere in Windows. Software in the Bash shell also can’t interact directly with or launch Windows programs, although the Bash environment and Windows have access to the same files on your computer.

Full article available below:
http://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/

You must log in to answer this question.

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