Unable to run system commands on Windows

Hi Gophers,

I am new to Golang, and even though I read multiple examples and also read the docs I am unable to run system commands on Windows.

Please consider the code found at: https://github.com/dinuta/estuary-agent-go/blob/features/src/utils/CommandUtils.go

What I am doing wrong ?

GO version on WIN: go version go1.14.3 windows/amd64

You are not telling us what errors you see or what there was in the outputs of the command you ran or what errors got returned.

The error is: fork/exec C:\WINDOWS\system32\cmd.exe: The parameter is incorrect.


Please close. Some other external issue, which I was unable to identify. Now it works with the same code.