1.

Solve : Archiving CAD file using batch file and Winzip?

Answer»

I'm scanning old hard copies of CAD drawing and archiving the PDF files. I would like to stream line this big project of over 100 old projects to archive!
In each job folder I create a "Client\RECORD_DRAWINGS” folder on are server.
I archive our latest DWG Cad files, but I have to search in the job folds for the latest DWG files and zip them up and move them the RECORD_DRAWINGS folder, but with commissioning work, DWG Cad files are found in the base job folder.
I created a Batch file to create the “Client\Record Drawing” folder and copies any DWG Cad files to new folder.
I now a little bit about creating Batch files, but don’t know if a batch file can search for latest dated filesin folders in a directory?
Or would I have to create a script file or VB?

Can it be done with a batch file?

I'm using WinZip 9.0 SR-1, Command Line SUPPORT 1.1 and WINDOWS XP
He is what I have so far.
@echo off

cls
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Creating Client Drawings Directorys º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
ECHO.
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Coping All CAD Files to CLEINT\RECORD DRAWING Directorys º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
ECHO.
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Zip up all CAD Files in CLEINT\RECORD DRAWING Directorys º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo
pause.
echo
echo.
echo.
md CLIENT\RECORD_DRAWINGS
copy *.DWG CLIENT\RECORD_DRAWINGS
del CREATE_RECORD_DIRECTORY.bat
echo.

WinZip is CURRENTLY at release 12.

Do you have the command line WinZip programs (wzzip & wzunzip)? If not you can DOWNLOAD the component from wzcline11 about two-thirds down the page. A help file is included.

If you have any problems, an alternate solution would be VBScript which can do primitive zipping and unzipping.

Good luck.



Discussion

No Comment Found