Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-09-2013, 10:07 AM
PosseJohn PosseJohn is offline Need Help With KILL Command Windows 7 32bit Need Help With KILL Command Office 2010 32bit
Novice
Need Help With KILL Command
 
Join Date: Jul 2011
Posts: 20
PosseJohn is on a distinguished road
Default Need Help With KILL Command

I have several files, that, after they are closed leave residual files in the folder.

What I mean, as an example, is after I close "U2TO 131025 1746.docm", another file "~$TO 131025 1746.docm" remains in the folder.

I periodically go in and delete all these "~$" files, but am looking for a programable solution.

Any ideas are welcome...

I attempted the following code, but it does NOT delete the "~$" files:


Code:
 
Sub DeleteTMPFiles() 'This is to 'clean-up' any temporary files in the various folders On Error Resume Next Kill "\\...\ShiftTurnover\" & "*.tmp" Kill "\\...\ShiftTurnover\" & "~$*.*" End Sub
Reply With Quote
  #2  
Old 12-09-2013, 03:32 PM
macropod's Avatar
macropod macropod is offline Need Help With KILL Command Windows 7 32bit Need Help With KILL Command Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

I'm not sure why you're worried about those files. Unless it crashes, Word will normally delete them of its own accord. Furthermore, you can't delete all of them while Word is running because Word will still have them 'in use'.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help With KILL Command ON ENTRY Command la_gillespie25 Word VBA 1 05-15-2013 02:18 AM
"One or more margins are set outside the printable area of the page." How to kill? WaltR Word 4 07-16-2012 01:55 PM
Need Help With KILL Command Help! What Are These & How Do I Kill Them? Finn O'Deirg Word 2 07-03-2012 01:54 PM
Add Command to Bar neiljsalkind Excel 0 02-03-2012 08:31 AM
Add-In:How to add command right click command bar phang Outlook 0 01-15-2007 02:53 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:18 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft