> I'd like to use nim to execute something like "C:UsersMeAppDataLocalThe
> AppTheApp.exe --uninstall --silent" or "bob" for short
did you mean:
"C:UsersMeAppDataLocalThe App\TheApp.exe --uninstall --silent"
Run
?
(you were missing the )
> execShellCmd(bob)
that can't work (space); you'll need to escape `C:UsersMeAppDataLocalThe
App\TheApp.exe` using `quoteShell`
Run
> failed but mentions args.len==0 in the err msg which I don't really follow
execProcess uses by default {poStdErrToStdOut, poUsePath, poEvalCommand},
poEvalCommand requires a command (ie not args)
either pass options without poEvalCommand or properly quote your command using
as explained above
> I found that the below works, but I'm still interested to know why the above
> don't > let x = execCmd(bob)
I don't understand what that would even work without quoting