
Stopping a running process
I just switched software from an NT machine to a Windows 98 machine and
some of my scripts (previously written in Perl) no longer work. I was
making use of "net stop" to stop processes in NT. This command is not
in Windows 98 and I was wondering if I could do this in WSH.
What I need to do is to stop three different programs, rename a file
and then start the three programs again.
It is a log rotation script. I currently cannot accomplish this,
because the log is being written to by the open programs.
Must I write the script to start the programs in order to shut them
down or can I use an object reference to find them?
Any help would be appreciated, I read the MSDN article on scripting and
didn't see this, but maybe I overlooked something.
--
Kevin Devine
Webmaster, Osborn International
http://www.*-*-*.com/
Sent via Deja.com http://www.*-*-*.com/
Before you buy.