Avatar of s2ready
s2ready
 asked on

Batch Files / Windows Scripting

Hi everyone,

I'm trying to write a batch file / windows scripting file to close some programs that are running on a Win2k Server. Basically I want to be able to close that software in order in case of a major server crashed or in case the software needs to be rebooted (probably using delays, or different batchs). The problem is that I haven't been able to find a way to close the software (without sending ALT+F4 keys with WSH)...

Is there any way to do it?

Thanks!
Networking

Avatar of undefined
Last Comment
juliancrawford

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
tduplantis

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
mav7469

If it where a service, you could use a Net stop command.  Just Net Stop (Service).  If not, that the Kill command.

Mav
CleanupPing

s2ready:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
juliancrawford

No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: tduplantis {http:#8601188}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Julian Crawford
EE Cleanup Volunteer
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck