So, my %PATH% has a directory containing the sass.bat script:
----
1. Using this..
os/exec.Command("sass.bat")
..returns an error --- exec: "sass.bat": executable file not found in %PATH%
Same with just "sass" instead of sass.bat. (Running both sass and sass.bat directly from the command-line works fine.)
2. Now, I try this alternative..
os/exec.Command("cmd", "/C", "sass.bat")
..returns an error --- exit status 1
Again, same with just "sass" instead of sass.bat. (Again, running both "cmd /C sass" and "cmd /C sass.bat" from the command-line works fine.)
----
So, calling all Windows gophers out there: how can I exec a batch file where its full file path isn't known but is known to be in %PATH% (which is usually enough for cmd /C)?