I have very little experience with CMD, and am trying to use it to call a program on every .go file in a directory, recursively.
First, I was trying for /R apiserver_sdk %%G in (*.go) DO gocyclo %%G, but learned that doesn't work. Then, heeding the advice here, I did for /R apiserver_sdk %%G in (*.go) DO gocyclo %G. In attempt to debug it, I changed gocyclo to echo, and wrapped the last %%G in double quotes, but still didn't work.
All attempts returned this error:
%%G was unexpected at this time.