- rem change unc_src, unc_dst, src_path, dst_path accordingly
- @echo off
- for /f "tokens=*" %%G in ('dir /b /a:d "\\unc_src\src_path\"') do (
- echo zipping %%G...
- c:\apps\7z\7za.exe u -r -y -up0q0y2 -mmt -ms=off \\unc_dst\dst_path\%%G.7z "\\unc_src\src_path\%%G\*.*"
zip first level sub-folders
ibi Jun 4th, 2014 2,018 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data