How to stop a running file

  • Thread starter Thread starter Don J
  • Start date Start date
D

Don J

How do you stop a running file from within a batch program? Actually what I
want to do is to stop a running program and make a copy its data files that
it ordinarily won't let go of! And I want to do all this and then exit from
Windows XP all from within a batch file.

Don J

-------------------------------------------------------------------------------
 
Be careful using the Taskkill.exe command - some programs object to it's
ability to force a program to close. Check the documentation first.

Also, the paid version of SyncBackSE says that it can copy locked files.

Good luck!

Doug Knox MS-MVP said:
Use TASKKILL. TASKKILL /? will get you the command line options.

--
Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display\Security
Win 95/98/Me/XP Tweaks and Fixes
http://www.dougknox.com
 
Anyone can copy locked files. See http://blogs.msdn.com/adioltean/archive/2005/01/05/346793.aspx#comments

and download a 25 mb file for 1 small file from
http://www.microsoft.com/downloads/...E4-0CCC-4626-826A-ED2C4C95C871&displaylang=en

No need to kill the program and risk damaging the file.
--
--------------------------------------------------------------------------------------------------
http://webdiary.smh.com.au/archives/_comment/001075.html
=================================================
usasma said:
Be careful using the Taskkill.exe command - some programs object to it's
ability to force a program to close. Check the documentation first.

Also, the paid version of SyncBackSE says that it can copy locked files.

Good luck!
 
Back
Top