I have a build script I'm using in a project I'm currently working on. I found that a certain command only works from cmd and not WSL, but I want to continue to work in WSL.
I have something like this:
command1 && command2 && command3
Say command2 only works in cmd. How can I make this script switch to cmd, execute a command and switch back to WSL?
cmd.exe /c "command2"indeed works. Thanks! Just curious, what does/cdo? Google can't search for puncuation unfortunately.cmd /?or"%ComSpec%" /?and read all about it.