Decompress the rarfile online using ASP

Source: Internet
Author: User
Have you ever thought about extracting compressed files online? Sometimes, after uploading a compressed package, it is very convenient to decompress it using ASP programs. Especially for webmasters who often update websites, due to the large compression ratio of text files, compression is used to upload and decompress the package, this saves a lot of valuable time than direct upload. Are you ready? Let's keep up.

The hosts file is "taken" separately .), In addition, the Windows operating system's own. exeprogram (this program is used to execute the winrar.exe file. The operating system that comes with the NT kernel can be found in the System32 folder under the operating system installation directory; for Windows 9x operating systems, you can find them in the system folder under the operating system installation directory .), 1. Upload them to the same directory. To create an ASP file, see the following code:

<%
Dim a, B, main, Shell, runing, runcode, CMD, comm, FSO
Main = "D: \ Cheng \ RAR \" ': the path after winrar.exeand cmd.exe is uploaded.
A = server. mappath ("RAR") & "\" 'storage path after extracting the rarfile.
B = server. mappath ("RAR \ homepage.rar") 'To decompress the rarfile and change homepage.rar to the file to be decompressed.
Set shell = server. Createobject ("wscript. Shell ")
Runing = "D: \ chencheng \ RAR \ cmd.exe/C" & Main & "winrar.exe X-T-O +-p-" 'sets the command for running the decompression.
Cmd = run & B & "" &
Runcode = shell. Run (CMD, 1, true)
%>

You can use it after saving it and uploading it to the space. Is it convenient? It's easy.

Read full text (1471) | Reply (6) | trackback (2) | edit | excellent

Reply: Decompress the rarfile online using ASP
Cczl (tourist) posted comments on 1:35:13

I tried it, but I couldn't use it. Could you tell me if the above landlord added me QQ?

My QQ: 147241793

Personal Homepage | reference reply | Reply from the master | return | edit | Delete

Reply: Decompress the rarfile online using ASP
Shuoshuo (tourist) posted comments on 21:04:45


SAMSUNG-USB-041119

Personal Homepage | reference reply | Reply from the master | return | edit | Delete

Reply: Decompress the rarfile online using ASP
M (visitor | 61.151.186.19) posted comments on 15:28:56


<%
Dim a, B, main, Shell, runing, runcode, CMD, comm, FSO
Main = "D: \ Cheng \ RAR \" ': the path after winrar.exeand cmd.exe is uploaded.
A = server. mappath ("RAR") & "\" 'storage path after extracting the rarfile.
B = server. mappath ("RAR \ homepage.rar") 'To decompress the rarfile and change homepage.rar to the file to be decompressed.
Set shell = server. Createobject ("wscript. Shell ")
Runing = "D: \ chencheng \ RAR \ cmd.exe/C" & Main & "winrar.exe X-T-O +-p-" 'sets the command for running the decompression.
Cmd = run & B & "" &
Runcode = shell. Run (CMD, 1, true)
%>

Personal Homepage | reference reply | Reply from the master | return | edit | Delete

 

 

Sister heisi in the office
Sexy glasses sister
Beautiful motorcycle models
Lili
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.