ASP Online Pressure Reduction (compression) RAR

Source: Internet
Author: User

Tomorrow I will see an article on the Internet that uses WinRAR for Online Pressure relief operationsArticleI made one by myself and found it was good.

Role.

It is said that wscript. Shell is unavailable to many virtual hosts, but I have tried it in a few friends' hosts. It's a bit strange...

Below is the question. Let's talk about the source code. I have a lot of nonsense ..

KeyCode:
Server. Createobject ("wscript. Shell" cmd.exe C (server. mappath (".") & "/rar.exe parameter"). stdout. readall

You can use rar.exe -hor to directly run rar.exe to obtain the rar.exeurl ..

For example:
Compress all the files under the current directory (package folder) to webroot.rar. The Code is as follows:
Server. Createobject ("wscript. Shell" cmd.exe C (server. mappath (".") & "/rar.exe A webroot.rar.-R"). stdout. readall

The package file list, compression, and decompression operations can be performed, but the files in the package cannot be deleted. It's really strange. After trying for a long time, I won't be able to get any results. Who told me what Ko came out and told me.

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.