Re: executeShell not working

2017-07-21 Thread FoxyBrown via Digitalmars-d-learn
On Saturday, 22 July 2017 at 02:31:45 UTC, FoxyBrown wrote: 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]

executeShell not working

2017-07-21 Thread FoxyBrown via Digitalmars-d-learn
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