nils-soderman / vscode-batch-runner

Visual Studio Code extension to run batch files in the terminal
https://marketplace.visualstudio.com/items?itemName=NilsSoderman.batch-runner
MIT License
5 stars 5 forks source link

With powershell terminal, this fails. #3

Closed MariwanJ closed 2 years ago

MariwanJ commented 2 years ago

cmd: The term 'cmd' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

cmd is not defined inside powershell and Visual Studio code uses powershell (Windows 10)

nils-soderman commented 2 years ago

Hi,

Thank you for reporting this issue! This should now been fixed with the v0.0.5 release (changelog).

Instead of using 'cmd' the extension will now use the absolute path to 'cmd.exe' ("C:\windows\System32\cmd.exe" by default, can be changed in the user settings).

Cheers, Nils