2
I would like to make a shortcut on Windows 10 that opens C:\Windows\System32\bash.exe (Ubuntu on Windows 10), runs a command and doesn't close the terminal.
I made a shortcut with target to C:\Windows\System32\bash.exe -c free
and it runs the "free" command but closes the terminal right after running it. How to prevent it from closing?
Also what would be better: is there a way to load a bash script using such a shortcut (a set of commands located in a text file that such a shortcut would open and execute one after another) without closing the terminal after the execution? I suppose preventing the terminal from closing when running a "target" and a text file would be two separate methods?
Thank you,
C:\Windows\System32\bash.exe -c free & pause
didn't work. ButC:\Windows\System32\bash.exe -c free & bash
worked! And withC:\Windows\System32\bash.exe -c free & read
it also works but I can't type further commands. – Koam – 2017-04-01T16:40:55.107