예제 #1
0
        private void Extract(String destinationPath, String destinationName)
        {
            Int32 result = Unrar.RARProcessFile(this.archiveHandle, (Int32)Operation.Extract, destinationPath, destinationName);

            // Check result
            if (result != 0)
            {
                ProcessFileError(result);
            }
        }
예제 #2
0
        /// <summary>
        /// Tests the ability to extract the current file without saving extracted data to disk
        /// </summary>
        /// <returns></returns>
        public void Test()
        {
            Int32 result = Unrar.RARProcessFile(this.archiveHandle, (Int32)Operation.Test, String.Empty, String.Empty);

            // Check result
            if (result != 0)
            {
                ProcessFileError(result);
            }
        }