i have windows services now i want to stop and start window services using jsp page means, in my jsp page there is a buttons start and stop when we click on those buttons then it should be stop and start service, i use some commands like this
public static int stopService(String serviceName) throws Exception {
return execCmd("cmd /c net stop \" + serviceName + "\"");
}
please anyone provide some guidance to this, thank u inadvance
Use process.
Detail coding works