When you run cad it creates a lot of temporary files, these being saved in a directory that you can reset. The type of files are SV$ BAK DWL DCL and so on. You may be horrified how much stuff is in there. You will find the files by Options, Files, Temporary prefix (Bricscad) similar Acad.
When running dcl's if you crash program a lot of ~00123.dcl will be created.
So this will identify how many files you have, dont tick the boxes on, go have a look at the location. Move/copy anything you think you need else tick the file type box and they will be removed.
; clean up temp directory..
(defun cleanuptemp ( / files1 files2 files3 files4 files5 files6 files7 lst7 x val ans)
(setq *files* (vla-get-files (vla-get-preferences (vlax-get-Acad-object))))
(setq pre (vla-get-TempFilePath *files*))
(alert (strcat "Your temp directory is " pre))
(setq lst7 '())
(setq files1 (vl-directory-files pre "*.BAK"))
(if (= files1 nil)
(setq lst7 (cons "0 BAK's " lst7))
(setq lst7 (cons (strcat (rtos (length files1) 2 0) " BAK's ") lst7))
)
(setq files2 (vl-directory-files pre "*.sv$"))
(if (= files2 nil)
(setq lst7 (cons "0 SV$'s " lst7))
(setq lst7 (cons (strcat (rtos (length files2) 2 0) " SV$'s " ) lst7))
)
(setq files3 (vl-directory-files pre "*.dwl*"))
(if (= files3 nil)
(setq lst7 (cons "0 DWL's " lst7))
(setq lst7 (cons (strcat (rtos (length files3) 2 0) " DWL's ") lst7))
)
(setq files4 (vl-directory-files pre "*.AC$"))
(if (= files4 nil)
(setq lst7 (cons "0 ac$'s " lst7))
(setq lst7 (cons (strcat (rtos (length files4) 2 0) " AC$'s " ) lst7))
)
(setq files5 (vl-directory-files pre "*.log"))
(if (= files5 nil)
(setq lst7 (cons "0 Logfile's" lst7))
(setq lst7 (cons (strcat (rtos (length files5) 2 0) " Logfile's ") lst7))
)
(setq files6 (vl-directory-files pre "~*.dcl"))
(if (= files6 nil)
(setq lst7 (cons "0 Temp DCL's " lst7))
(setq lst7 (cons (strcat (rtos (length files6) 2 0)" Temp DCL's " ) lst7))
)
(setq files7 (vl-directory-files pre "*.dmp"))
(if (= files7 nil)
(setq lst7 (cons "0 DMP's " lst7))
(setq lst7 (cons (strcat (rtos (length files7) 2 0)" DMP's " ) lst7))
)
(setq lst7 (reverse lst7))
(if (not AH:Toggs)(load "Multiple toggles.lsp"))
(setq lst7 (cons "Pick to delete " lst7))
(setq ans (reverse (ah:toggs lst7)))
(setq x 1)
(foreach val ans
(if (= val "1")
(progn
(foreach filename (eval (read (strcat "files" (rtos x 2 0))))
(vl-file-delete (strcat pre filename))
(princ (strcat "\n" filename))
)
)
)
(setq x (1+ x))
)
(princ)
)
(cleanuptemp)
Multi toggles.lsp