



RAR_This_Directory = "D:\Virtualbox_Shared\WinRAR_Testing " RAR_This_Directory = "/media/sf_Virtualbox_Shared/WinRAR_Testing " %% Directories %Root directory to compress into a RAR archive (unix / windows format switching) if( isunix) ExampleĮxample use of RAR.m and UNRAR.m to create a RAR archive from a directory, then un-compress the same archive to another directory. Advanced features such as repairing damaged archives that have recovery sectors are not supported, please use the official WinRAR client to do this in the event of a failed extraction due to corruption. The extraction of password protected RAR archives is supported. Additional file formats that WinRAR supports may work, but are untested. UNRAR.m supports the extraction of multiple compressed file formats including RAR, ZIP and GZ. Running as a background (invisible) or foreground (visible) process.Range of 1-5 where 0 corresponds to no compression, 5 corresponds to maximum compression.RAR.m supports the use of the following features of WinRAR: While this script also happens to work for the creation of ZIP file formats, it is not fully supported and may be less reliable than using the RAR file format. RAR.m supports the creation of RAR file formats, a full feature list of this script is shown below.

For more information on requirements and setup, see Installation Requirements. These scripts are not a replacement for official WinRAR software as both RAR.m and UNRAR.m call the executables of the official WinRAR client in order to function. Scripts to compress / decompress archive files using WinRAR 5.0+ programmatically from within Matlab.
