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. |