How to enter WSL automatically whenever cmd.exe is lauched?
Is it possible to let cmd.exe run wsl whenever it is lauched?
I am asking this because I use a program (Stata) that can run shell script by opening cmd.exe. But, all the shell scripts are written for Bash. (I also use Mac). I will not need to change any code when I move between two computers (mac & win), if cmd can automatically lauch wsl so that all the bash command can be interpreted correctly.
Thanks!
windows-10 bash cmd.exe windows-subsystem-for-linux
New contributor
add a comment |Â
Is it possible to let cmd.exe run wsl whenever it is lauched?
I am asking this because I use a program (Stata) that can run shell script by opening cmd.exe. But, all the shell scripts are written for Bash. (I also use Mac). I will not need to change any code when I move between two computers (mac & win), if cmd can automatically lauch wsl so that all the bash command can be interpreted correctly.
Thanks!
windows-10 bash cmd.exe windows-subsystem-for-linux
New contributor
Make a batch file with this line:wsl.exe
â Biswapriyo
8 hours ago
add a comment |Â
Is it possible to let cmd.exe run wsl whenever it is lauched?
I am asking this because I use a program (Stata) that can run shell script by opening cmd.exe. But, all the shell scripts are written for Bash. (I also use Mac). I will not need to change any code when I move between two computers (mac & win), if cmd can automatically lauch wsl so that all the bash command can be interpreted correctly.
Thanks!
windows-10 bash cmd.exe windows-subsystem-for-linux
New contributor
Is it possible to let cmd.exe run wsl whenever it is lauched?
I am asking this because I use a program (Stata) that can run shell script by opening cmd.exe. But, all the shell scripts are written for Bash. (I also use Mac). I will not need to change any code when I move between two computers (mac & win), if cmd can automatically lauch wsl so that all the bash command can be interpreted correctly.
Thanks!
windows-10 bash cmd.exe windows-subsystem-for-linux
windows-10 bash cmd.exe windows-subsystem-for-linux
New contributor
New contributor
edited 21 hours ago
New contributor
asked 21 hours ago
Norman
11
11
New contributor
New contributor
Make a batch file with this line:wsl.exe
â Biswapriyo
8 hours ago
add a comment |Â
Make a batch file with this line:wsl.exe
â Biswapriyo
8 hours ago
Make a batch file with this line:
wsl.exe
â Biswapriyo
8 hours ago
Make a batch file with this line:
wsl.exe
â Biswapriyo
8 hours ago
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Norman is a new contributor. Be nice, and check out our Code of Conduct.
Norman is a new contributor. Be nice, and check out our Code of Conduct.
Norman is a new contributor. Be nice, and check out our Code of Conduct.
Norman is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid â¦
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid â¦
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1387745%2fhow-to-enter-wsl-automatically-whenever-cmd-exe-is-lauched%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Make a batch file with this line:
wsl.exe
â Biswapriyo
8 hours ago