Asp.net uses RAR for File compression and decompression
Author: qingyueer
Home page:Http://blog.csdn.net/21aspnet/Time: 2007.6.13
If the RAR program is installed on the server, Asp.net can call RAR to compress and decompress files.
However, it should be noted that the web program cannot directly call the client program (unless ActiveX is used, ActiveX is almost d
1. Download RAR installation package: http://www.rarsoft.com/download.htm, according to the operating system select the corresponding binary installation package, my CentOS operating system is 64bit, so download rar for rarlinux-x64-5.3. 0. tar.gz.2. Installation rarTAR-ZXVF rarlinux-x64-5.3. 0 -p/usr/local/-p/usr/local//usr/local//default. SFX/ usr/local/3. UseDecompression:
If a RAR program is installed on the server, then asp.net can call RAR to implement file compression and decompression.
However, note that because the Web program can not directly invoke the client's program (unless the use of activex,activex almost discarded), so if you want to achieve the user to the local file with a Web page uncompressed only to upload files to the server and then call the server on th
Pack hebaodans.comvisual into hebaodans.rar?plain=viewplaincopy=rarahebaodans.rar./Examples
Package the hebaodans.com directory as hebaodans.rar
[Plain]View plaincopy
# Rar a hebaodans.rar./hebaodans.com/
Decompress hebaodans.rar to the current directory.
[Plain]View plaincopy
# Rar x hebaodans.rar
CentOS rar unrar installation
[Plain]View plaincopy
Extract the rar compressed package in Linux, and use linuxrar
First download winrar for Linux: http://www.rarlab.com/download.htm at this URL
Extract the rar folder and enter the rar folder in the terminal,
Run the make command,
Then you can decompress the package.
Rar e aa.rar decompress the aa.rar compressed f
The second write is related to calling RAR for decompression. Record the problem.
The first time I wrote a Demo, I tried to upgrade and overwrite my website through RAR decompression.
Problems encountered during the first write:
1. In XP, extract and overwrite the directory of the running Asp.net program on the Web (overwrite itself ). Error-"exception: you cannot overwrite yourself in the process
The solut
Unzip the rar compressed package in Linux
First download winrar for Linux: http://www.rarlab.com/download.htm at this URL
Extract the rar folder and enter the rar folder in the terminal,
Run the make command,
Then you can decompress the package.
Rar e aa.rar decompress the aa.rar compressed file to the current
If RAR is installed on the serverProgramSo Asp.net can call RAR to compress and decompress files.
However, it should be noted that the web program cannot directly call the client program (unless ActiveX is used, ActiveX is almost deprecated ), therefore, to decompress a local file on a webpage, you must upload the file to the server and then call RAR compressio
Generally through the default installation of Ubuntu can not extract RAR files, only after the installation of RAR decompression tool, can be decompressed. In fact, the installation of RAR decompression tool under Ubuntu is very simple, only need two steps can be quickly done.Ubuntu under RAR Decompression Tool install
Friends give me a support for ASP space, but upload files can only be a single file upload, no batch upload, my page has a lot of
Small pictures, this way of uploading is very painful. So consider the picture file can be compressed into a RAR format, and then on the server solution
Pressure.
In fact, want to achieve this function is very simple, first of all to upload a RAR decompression program, is
This article illustrates the method of Php_rar extension of PHP installation to realize RAR file reading and decompression. Share to everyone for your reference, specific as follows:
The PHP RAR archiving Module (PHP_RAR) is a module that reads and compresses RAR files, but does not provide a RAR compression (packagin
1, since the use of normal methods can not be resolved we can only use other methods, first go to Baidu search "small building rar tool" to download to your computer.
2, in the above we use RAR test to do an encrypted RAR file on the desktop, and then open the "Small building RAR tool" software, at the address of th
1. Introduction
This command is used to compress or decompress files in the RAR format.
2. Grammar
A adds a file to the compressed packageC Add Compression notesCF Add File CommentCW writes a compressed note to the fileD removing files from a compressed packageE Extract files under current directoryf refreshing files in a compressed filei[par]=K Lock Compressed PackageL[T,B] Lists the contents of the compressed package [T (technical) detailed list, B
Tags: tin finish style hat COM record round etc andRequirements Description :Today a colleague sent over a compressed file, sent to the Linux server, passed up, found to be RAR formatBefore the decompression, we found some decompression methods, in this record.Operation Process :1. Download RAR installation package in Linux environment: https://www.rarlab.com/rar
1. sudo apt-Get install p7zip-full # Install 7zip
7z X file # decompress the file
2. Generally, the rarfile cannot be extracted from Ubuntu installed by default. The rarfile can be extracted only after the RAR decompression tool is installed. In fact, installing the RAR decompression tool in Ubuntu is very simple. It can be done quickly in just two steps.
Ubuntu RAR
Article Title: compress and decompress the RAR package in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Rar compression formats are already popular in windows, but they are not integrated in linux, which is inconvenient,
Fortunately, there is a compilation i
Detailed description of java zip and rar tool use tutorials, zip tool class
Detailed description of java decompress zip and rar tool class use tutorials directly on the code
Package decompress; import java. io. file; import java. io. fileOutputStream; import org. apache. tools. ant. project; import org. apache. tools. ant. taskdefs. expand; import de. innosystec. unrar. archive; import de.innow.ec.unrar.rar
Under Windows RAR is a common compressed file format, many friends will be packaged into a RAR file into the CentOS server but do not know how to extract.
There have been a lot of customers consulting how to extract the RAR under the CentOS compressed files, so I sorted out, GU has this article.
To extract the RAR fi
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.