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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows XP Home: tskill exit gracefully

Status
Not open for further replies.

mattsv

Programmer
May 21, 2005
28
US
Hello,

Unlike it's counterpart taskill, tskill does not exit gracefully*.

Is there a utility which functions like taskill/tskill but permits exiting gracefully and can be executed as part of a batch file?

I downloaded pskill from sysinternals, and it doesn't seem to permit exiting gracefully.


For reference, feel free to read this thread:

TSGL: Batch file command to terminate in XP










*To demonstrate:

XP Home
-----------------------

Sequence of tasks:
opened word, typed some text, saved the file to the desktop, typed more text, opened cmd and executed "tskill WINWORD", opened the text file I saved

I got the recovery message and windows autorecovery feature to appear. Finally, get this, the text I typed after saving the file was missing (probably because autosaves saves in intervals and I didn't allow enough time for it to be invoked?)

XP Pro
-------------

Did the same sequence of steps as above.

Before exiting due to taskill, I was prompted if I wanted to save my changes. This is certainly graceful.

When I executed a taskill /F, it did not prompt me and results were the same as observed with XP Home (autorecovery, etc)
 
bcastner, You got it!

"Process.exe -q" sends WM_CLOSE and permits exiting gracefully.


Thank you so much for your repeated insight into my answers and the contribution of time you give to the community.

Can I get your email anyway so that I may paypal you my appreciation for you help?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top