繁体   English   中英

批处理文件以-c标志执行WSL bash.exe

[英]Batch file to execute WSL bash.exe with -c flag

等同于快捷方式

C:\Windows\System32\bash.exe -c "sh /home/rwx/.wsl_shortcuts/terminal.sh"

用批处理文件启动它?

我尝试了什么

start "" "C:\Windows\System32\bash.exe" "sh /home/rwx/.wsl_shortcuts/terminal.sh"
start "" "C:\Windows\System32\bash.exe" -c "sh /home/rwx/.wsl_shortcuts/terminal.sh"

工作完成了吗?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM