Provide new features that do not break current implementations (must be backwards compatible).Enabling support for additional operating systems (must not break any functionality on Windows / Unix).To register the rar package, copy the rarreg.key licence file to either:Ĭontributions towards this code will only be accepted under the following conditions: If a portable installation is used, point RAR_Parameters.WinRAR_Path to the location of WinRAR.exe.An installed and licenced version of WinRAR (version 5.0 or higher).= UNRAR( Output_RAR_File, Extraction_Directory, RAR_Parameters) %Uncompress files from the archive if the original compression was successful if( Compression_Success) %If overwriting files (true will overwrite any files during extraction of an archive, false will stop extraction and prompt)Ĭompression_Success = RAR( RAR_This_Directory, Output_RAR_File, RAR_Parameters) %Compression level (0-5) where 0 is uncompressed, 5 is the maximum compression %Archive format (will take precidence over other file format specificatons such as in the archive filename) %Recovery sector size for a RAR archive (0-100) RAR_Parameters.Delete_Files_After_Archive = false ?letion of the original files (false = retained, true = deleted) %If running WinRAR in the background (false = hidden, true = visible) RAR_Parameters.Comment = "insertcomment " %Comment to be inserted into to the archive RAR_Parameters.Encrypt_Filenames = false %If encrypting the filenames in the archive as well as the file contents RAR_Parameters.Password = "testpassword " %Root directory to extract the files from the RAR archive into if( isunix)Įxtraction_Directory = "/media/sf_Virtualbox_Shared/RAR_Output " Įxtraction_Directory = "D:\Virtualbox_Shared " Įnd %% Parameters to compress/uncompress RAR file with %Full path to WinRAR.exe, this (may/may not) be needed depending on system enviroment variables %RAR_Parameters.WinRAR_Path = 'C:\Program Files\WinRAR\WinRAR.exe' %Password to encrypt the archive with (optional, maximum length 125 characters due to WinRAR constraints) 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |