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
Thanks,
Catalin

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.

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

Thanks,
Catalin

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