-
Notifications
You must be signed in to change notification settings - Fork 842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
run *.cmd from wsl shell #4547
Comments
You can make a wrapper bash/zsh/fish/sh script for it. Put |
Thanks, I will have a try and post the scripts for someone may have same situation. |
The use case is hard to follow here though. Yep, But whatever the particulars of the use case, @archilkarchava has the canonical answer of how to evoke a [Once some time back when someone else asked this question, I had wondered idly if anyone had done a |
@archilkarchava Thanks again. end up with a simple shell function that works great for me: cmd() {
CMD=$1
shift;
ARGS=$@
WIN_PWD=`wslpath -w "$(pwd)"`
cmd.exe /c "pushd ${WIN_PWD} && ${CMD} ${ARGS}"
} then I can simply call @therealkenc |
@oHaiyang's fish function equivalent to run windows scripts from fish on wsl
|
Microsoft Windows [Version 10.0.18980.1]
The documents say one can Run Windows tools from WSL, if one type
notepad.exe
into the WSL shell, the Windows application should launch. But what if I want to run a cmd script directly from WSL shell, is that possible?For some tools like yarn and npm, they do not have
yarn.exe
ornpm.exe
, but use a.cmd
script as their command interface.The text was updated successfully, but these errors were encountered: