Hi folks,
Got this working so I thought I'd post reply. It was straight forward enough
in the end.
I downloaded AutoExNT.zip (did a search on the web to find it) and installed
it as per the instructions I found at www.winfiles.com. The help was located
under 'how do i run a program as a service so it starts each time NT reboots?'
on the above website.
I then installed AutoExNT as a service (as per instructions above) and added a
call to ServiceCheck.class in the .bat file associated with my new service. This
worked like a treat. It nows means I don't need anybody logged onto my
production machine for me to check the services.
I do have a few 'Dear whoever wrote this class' questions though.
1. Could the valid datetime be written to the log file. It looks to me that a static
datatime is used. My log file always shows the time I called the class for the
first time
2. Could an optional call be made to the ServiceControl tool to start any service
it determines are down. This would be handy if something happend outside of our
normal support hours, or could the code be made available?
If anybody needs help drop me an email.
Regards,
Damian O'Connor
Hewlett Packard
"Damian O'Connor" <[EMAIL PROTECTED]> wrote:
>
>Hi,
>
>I downloaded some of the diagnostic tools available on this site. I've no problems
>running these from the CMD prompt, however, we want to be able to schedule
>these calls.
>
>Our production machine won't always have somebody logged in, therefore we
>require some 'scheduling service' (we've looked at WINAT.EXE) that can call
>our .bat files. The problem is that nothing appears to happen when the .bat
>file is executed via WINAT.
>
>Has anybody tried this? We're particularly interested in the ServiceCheck utility.
>
>Is there a special way to call a .class file directly through a dos batch file?
>
>Help here would be much appreciated!
>
>Regards,
>Damian
>Hewlett Packard
>Ireland
>
>Detailed below: Sample batch file entries (\jre and \java have been tried):
>c:
>cd "C:\TEMP\ND Utilities"
>c:\jdk1.1.7b\bin\jre -classpath %CLASSPATH%;%NETDYN_CLASSPATH% ServiceCheck -i
>ServiceCheck.ini > ServiceCheckRun.log
>
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]