Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have win xp pro and I have a batt

Status
Not open for further replies.

volley1960

Technical User
Joined
Aug 30, 2003
Messages
1
Location
US
I have win xp pro and I have a battery backup because of the recent power problems.The software for the battery backup automatically shuts the computer down during a outage.The problem is the PC wont shut down because of the software thats running.It trys to close the software but it hangs on a (Windows) window which has several options.The X that closes it.OK and cancel.The window says are you sure you want to shutdown program.Do I need to create a batch file to close that window?The software for the battery backup has a execute command and all I need is the path to tell something to shut down the (windows) window.What Iam looking for is how do I create that particular batch file and what are the commands.Any help would be appreciated!!!!!!
 
If you pass control to the native XP shutdown utility it will kill any active processes:

shutdown -f -s

But perhaps you have some other issue, in that case you can use either the Win2k SDK utility Kill, or the PsTools utility PsKill.

In either case you need to know the process ID.

Lets assume you use the freeware PsTools Utility Kit:
You would use PsList to obtain the PID or Process ID of the sticky process.

Let say the PID is 121:

*** start of CMD file

PsKill 121
shutdown -f -s

**** end of CMD file.


The system is shutdown.
This should also shutdown the UPS shutdown tool.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top