executeShell not working

FoxyBrown via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jul 21 19:31:45 PDT 2017


auto sss = "sc config \""~szSvcName~"\" start= disabled";
executeShell("sc config \""~szSvcName~"\" start= disabled");

but if I copy and paste the string in to an admin console, it 
works fine:

sc config "W32Time" start= disabled
[SC] ChangeServiceConfig SUCCESS

szSvcName is W32Time.

It's not an admin issue.

I *can't* set it to other states either. Does executeShell not 
run it's process with the same rights as the app?





More information about the Digitalmars-d-learn mailing list