ASP in line pressure (shrinkage) solution (pressure) RAR

xiaoxiao2021-03-06  98

Tomorrow I saw an article using WinRAR to carry out online interpolation operation RAR compression package, I have made one, I found it is not bad.

The principle is actually very simple, it is to upload the rar.exe in WinRar to its own web, then write an ASP to run Rar.EXE to operate the Rar.exe with WScript.Shell components.

It is said that Wscript.shell has many virtual hosts that cannot be used, but I have tried it in the host of several friends. It is a bit strange ...

Here is the topic, the source code is talking, my nonsense is too much ..

Key code: server.createObject ("wscript.shell"). EXEC (Server.MAppath (".") & "/Ra.exe parameter") .stdout.readall

The parameters of Rar.exe can be used with Rar.exe -h or directly Rar.exe..

For example: Compress all files (including subfolders) in the current directory to Webroot.rar. The code is as follows: Server.createObject ("wscript.shell"). EXEC (Server.MAppath (".") & "/ Rar .exe a webroot.rar. -r "). stdout.readall

The display package file list / compression / decompression can be operated, just deleting the files in the package cannot be running, it is quite strange .. Trying for a long time can't get the result. Who ko came out to tell me.

转载请注明原文地址:https://www.9cbs.com/read-124010.html

New Post(0)