daily pastebin goal

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!
  1. rem change unc_src, unc_dst, src_path, dst_path accordingly
  2. @echo off
  3. for /f "tokens=*" %%G in ('dir /b /a:d "\\unc_src\src_path\"') do (
  4. echo zipping %%G...
  5. c:\apps\7z\7za.exe u -r -y -up0q0y2 -mmt -ms=off \\unc_dst\dst_path\%%G.7z "\\unc_src\src_path\%%G\*.*"
  6. )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand