can anybody help? Wanna stop one of running windows services from my java source, run anotger functionality and start that service again.
Which classes I need to use?
Thanks in advance
The easy way, i think is this:
retrive sc.exe utility from microsoft and then ...
getRuntime().exec('[i]...pathName[/i]\sc.exe stop [i]...service...[/i]') //Stop service
getRuntime().exec('[i]...pathName[/i]\sc.exe start [i]...service...[/i]') //Start service
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.