defect122

windows batch - compress file with 7zip

Feb 29th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. @echo off
  2. cd /d c:\7-zip\
  3. 7za.exe a -t7z "c:\Backup-upload\documents-backup-upload.%date%.7z" c:\Documents -mx=9
  4. echo The folder has been archived and saved to c:\.
  5. pause >nul
  6. exit
  7.  
  8. compress folder via 7za and current date appended.
Advertisement
Add Comment
Please, Sign In to add comment