Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 



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 03:42 PM.


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