rwx
rwx

Reputation: 716

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

What's the equivalent to a shortcut with

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

to start it with a Batch file?

What I tried

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

Upvotes: 1

Views: 1264

Answers (1)

rwx
rwx

Reputation: 716

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

Did the Job...

Upvotes: 2

Related Questions