Important: Using taskkill to kill a process?

astroview

Golden Member
Dec 14, 1999
1,907
0
0
I'm using Taskkill in a Windows XP batch file to kill outlook.exe and backup its files.

Is this safe to do or not guys?


syntax:
"taskkill /IM outlook.exe"


 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Does it force kill it, or does it send it a quit message and let Outlook exit gracefully? If it force kills it, you will eventually corrupt your pst file.
 

astroview

Golden Member
Dec 14, 1999
1,907
0
0
When I used it this was outputted:

SUCCESS: The process "OUTLOOK.EXE" with PID 1784 has been terminated.

Not sure if thats good or not.
 

Valhalla1

Diamond Member
Oct 13, 1999
8,678
0
76
well you might make the batch file back up the pst file first, then kill outlook, just in case the killing part corrupts it.. unless it wont let you copy the pst file while outlook is running
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
That's the problem, Windows won't let you read open files (which is really stupid) so you can't copy it while Outlook is open.