18 Feb 2015

Windows Batch Script for Zipping Shapefile Components

@ECHO OFF
set /p $PATH="enter directory: "
pushd %$path%
FOR %%F IN (*.shp) DO "C:\Program Files\7-Zip\7z.exe" a "%%~nF.zip" "%%~nF.shp" "%%~nF.dbf" "%%~nF.prj" "%%~nF.shx"
popd
Echo Done !!!
set /p $dum="Hit [Enter] to exit..."

No comments :

Post a Comment