Posts o7zip or RAR your project files and folders!
Post
Cancel

o7zip or RAR your project files and folders!

A command line, place is to the root folder where contains all your PRJ folders, save is as backup.bat

download 7-Zip Command Line Version from http://www.7-zip.org/download.html

1
7z a mybackup.7z *.* -r -x!*.dll -x!*.exe -x!*.dat -x!*.7z -x!*.xml -x!*.db3 -x!*.msg -ppassword

for RAR use :

1
2
3
4
5
6
7
8
9
10
11
12
13
@ECHO OFF
CLS

SET BASEPATH=j:\sourcepath

FOR /D %%i IN (%basepath%\*.*) DO (
  RAR.exe a -r "-pyourpassword" -x*\bin -x*\obj -x*.rar -x*.zip -x*.7z -x*.exe -ep1 "U:\upload\%%~ni.rar" -s "%%i"
)

REM %%~ni = folder name only
REM %%i   = fullpath
REM enumerate folders - http://ss64.com/nt/for_d.html
REM if u remove /D enumerate files

sample : alt

then upload it at https://hubic.com

#backup

origin - http://www.pipiscrew.com/?p=6392 7zip-or-rar-your-project-files-and-folders

This post is licensed under CC BY 4.0 by the author.
Contents

Trending Tags