Shutting down a Windows Application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using the Microsoft Backup Utility to backup some files to my network.
One file in particular is in use and is not backup because the application is
open. Is there a way to close the application automatically so that the
backup can run successfully?
Thanks!
 
CG fumbled, fiddled and fingered:
I am using the Microsoft Backup Utility to backup some files to my
network. One file in particular is in use and is not backup because
the application is open. Is there a way to close the application
automatically so that the backup can run successfully?
Thanks!

Use kill.exe from the resource kit or pskill.exe from
http://www.sysinternals.com/ntw2k/freeware/pskill.shtml

and run a batch file to start your backup with a line in it to "kill"
the app you want

I've not used pskill but kill.exe will allow

kill applicationname

and will end a process, I assume pskill works in a similar fashion.
 
Steve Parry said:
CG fumbled, fiddled and fingered:


Use kill.exe from the resource kit or pskill.exe from
http://www.sysinternals.com/ntw2k/freeware/pskill.shtml

and run a batch file to start your backup with a line in it to "kill"
the app you want

I've not used pskill but kill.exe will allow

kill applicationname

and will end a process, I assume pskill works in a similar fashion.


--
Steve Parry BA (Hons) MCP MVP

http://www.gwynfryn.co.uk


Steve,

Thanks for the info. We don't have a Resource disk so I used the pskill
util. It worked fine. One question though. Do these utilskill and pskill,
close down apps gracefully so as not to cause any kind of damage to the app?
 
CG fumbled, fiddled and fingered:
Thanks for the info. We don't have a Resource disk so I used the
pskill util. It worked fine. One question though. Do these utilskill
and pskill, close down apps gracefully so as not to cause any kind of
damage to the app?

I think they "force" the shutdown so it is'nt graceful. Having said that
I've not ever had a problem using kill in such a fasion so far.
 
No, it brute-force kills them. Something like this may work for you if kill
does not.

http://www.autoitscript.com/autoit3/

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Thanks for the info. We don't have a Resource disk so I used the pskill
| util. It worked fine. One question though. Do these utilskill and pskill,
| close down apps gracefully so as not to cause any kind of damage to the
app?
 
Gentlemen,

Autoit solved the problem. I couldn't use pskill because the database
associated with the application would become corrupt. Autoit allowed me to
create a script then convert it to an exe to shutdown the app gracefully.
Thanks for your help and suggestions.
 
Glad to hear it. Thanks for the feedback.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Gentlemen,
|
| Autoit solved the problem. I couldn't use pskill because the database
| associated with the application would become corrupt. Autoit allowed me to
| create a script then convert it to an exe to shutdown the app gracefully.
| Thanks for your help and suggestions.
 
Back
Top