Similar to Thread where is activated script file for multiple open-qsave and closeall, you can use this code to generate script (test.scr) in path you in start specify where are *.dwg files for recover-audit-qsave and closeall... This way you can save your *.dwg files in file format you want (firstly you must specify what will that format be through OPTIONS -> Open&Save Files Tab -> Default save file format (select from drop down bar)... After this you can apply this code :
Code:
(defun c:brfd () (c:batchrecoverfilesindir))
(defun c:batchrecoverfilesindir ( / FILELST FILEN K PTH PTHFILELST SCRFILE)
(setq pth (getstring "\nSpecify path direcory where are *.dwg files for batch recover-qsave-close <ex. c:/.../.../ : "))
(setq filelst (vl-directory-files pth "*.dwg"))
(foreach file filelst (setq pthfilelst (cons (strcat pth file) pthfilelst)) )
(setq filen (length filelst))
(setq scrfile (open (strcat pth "test.scr") "w"))
(setq k -1)
(repeat filen
(setq k (1+ k))
(princ "Recover" scrfile)
(princ "\n" scrfile)
(prin1 (nth k pthfilelst) scrfile)
(princ "\n" scrfile)
(princ "\n" scrfile)
(princ "Audit" scrfile)
(princ "\n" scrfile)
(princ "Y" scrfile)
(princ "\n" scrfile)
(princ "Qsave" scrfile)
(princ "\n" scrfile)
)
(princ "CloseAll" scrfile)
(princ "\nN" scrfile)
(princ "\n" scrfile)
(close scrfile)
(command "script" (strcat pth "test.scr"))
(princ)
)
(princ "\nType \"brfd\" for batch recover-qsave-close *.dwg files in specified directory")
(princ)
M.R.