Saturday, August 17, 2019

WinRAR Command Line Examples

Some examples of using WinRAR from command line to automate zipping of files into chuncks:


-- chunk folder into a rar in 700MB increments
"c:\Program Files (x86)\WinRAR\WinRAR.exe" a -afrar -v700m "C:\Temp\Destination.rar" "C:\Temp\SourceFolder"


-- another
"c:\Program Files (x86)\WinRAR\WinRAR.exe" a -afrar -v700m "C:\_bu\wwwroot.rar" "C:\_bu\wwwroot"