Archive: stop & start Apache Tomcat 4.1


stop & start Apache Tomcat 4.1
Greetings,

I am quite new to this forum so please be kind.
I have a question about stopping & starting a service whose name has multiple spaces. My problem is with the string "Apache Tomcat 4.1".

I am trying to stop & start this service by writing
ExecWait "net stop Apache Tomcat 4.1"

Unfortunately, the service never stops. Is there anyway to escape the " character so that it will properly execute?

All these have failed too:
ExecWait "net stop 'Apache Tomcat 4.1'"
ExecWait "net stop \"Apache Tomcat 4.1\" "

Any help is deeply appreciated. Thanks

James


Never mind. I've found the solution.

ExecWait 'net start "Apache Tomcat 4.1"'
ExecWait 'net stop "Apache Tomcat 4.1"'

Thanks