Page 2 of 2

Re: Script to run 1 process and kill 2 services

Posted: 19 Nov 2015 11:18
by swan_x
ok people, new attempt:
on cmd i write: net start "apple mobile device service" and the service start!
but on XY i write: run "cmd /c net start "Apple Mobile Device Service" /F";
the service don't run and have a error: Impossible find specified file.File: "cmd /c net start "Parameters: Apple Mobile Device Service" /F"
run
"cmd /c net start "Apple Mobile Device Service" /F"

with run "cmd /c net start "Apple Mobile Device Service"; i have an error overflow 0 / 0
where is problem??

Re: Script to run 1 process and kill 2 services

Posted: 19 Nov 2015 11:22
by PeterH
At least you must double quotes inside quotes:

"cmd /c net start ""Apple Mobile Device Service"" /F"

Re: Script to run 1 process and kill 2 services

Posted: 19 Nov 2015 11:58
by highend
General comments:
net start / stop don't know the parameter "/F"?

Normally starting / stopping services requires admin permissions so
does XY run with admin permissions?

Otherwise your command will fail anyway...

Re: Script to run 1 process and kill 2 services

Posted: 19 Nov 2015 18:34
by swan_x
Ok tanxs, now i try with ""...and XY with the admin privilegis!

Re: Script to run 1 process and kill 2 services

Posted: 20 Nov 2015 11:09
by swan_x
Ok Work correctly with ""
Tanxs to everybody for support!