Author Topic: .Log Files  (Read 1633 times)

0 Members and 1 Guest are viewing this topic.

krampaul82

  • Guest
.Log Files
« on: August 31, 2010, 03:27:49 PM »
Does any one have a lisp rotuine to get rid of all acad log files and .bak files?
similar to this?

; Cleans up the undo and redo temp files

(defun c:CleanTemp nil
  ;; delete all UND* and RED* temp files
  (foreach x (vl-directory-files (getvar 'tempprefix))
    (and (wcmatch (strcase x) "UND*,RED*")
         (vl-catch-all-apply (function vl-file-delete) (list (strcat (getvar 'tempprefix) x)))
    )
  )
  (princ)
)


thank you in advance....

ronjonp

  • Needs a day job
  • Posts: 7531
Re: .Log Files
« Reply #1 on: August 31, 2010, 05:09:07 PM »
Seems like you could add *.AC$ to the wcmatch filter.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

krampaul82

  • Guest
Re: .Log Files
« Reply #2 on: September 01, 2010, 12:19:39 PM »
Again Thank You Ronjonp..... :-)

Crank

  • Water Moccasin
  • Posts: 1503
Re: .Log Files
« Reply #3 on: September 02, 2010, 02:01:29 PM »
Does any one have a lisp rotuine to get rid of all acad log files and .bak files?
[...]
- Most log files can be turned off completely if you change some variables. In options you can also specify the location for these log files.
- You can move the bak files to a special folder with the MOVEBAK command. (= express tool)
Vault Professional 2023     +     AEC Collection