Recommended: Return XML from ASP Web Page Summary Returning XML data from Active Server Pages (ASP) Web pages is a common programming requirement. The methods used to implement this requirement vary by the version of Microsoft Internet Information Services (IIS) used to host the ASP application. The step-by-step guide in this article comes with relevant sample code that demonstrates how to return an Extensible Markup Language (XML) from an ASP page.
In fact, it is very simple to implement this function. First, you need to upload a RAR decompression program, which is RAR's own decompression program, and only its core is needed.
The RAR.EXE file is ready. Then you have to upload a program that executes RAR.EXE. CMD.EXE. This is a program in Windows (no need to say more). Finally, we start executing these programs. Take a look at the following code
<%
dim ylj,ywj,Mlpath,Shell,rarcomm,RetCode,cmd,comm,fso
Mlpath=E:pagemian 'The path to store RAR.EXE and CMD.EXE
ylj=Server.mappath(mian)& 'The path placed after decompressing the file
ywj=Server.mappath(mianapathy.rar) 'The rar file to be decompressed
Set Shell = Server.CreateObject(WScript.Shell)
rarcomm= E:pagemiancmd.exe /c &Mlpath&rar.exe x -t -o+ -p-
cmd=rarcomm&ywj& &ylj
RetCode = Shell.Run(cmd,1, True)
%>
It is to use Server.CreateObject(WScript.Shell) to execute CMD.EXE to run the RAR.EXE file to decompress the RAR file.
I don’t know if any of my predecessors have published these articles before, but that brother who is interested can use this method to implement many similar and such programs. I hope you can find some better methods.
Share: Using Transaction Control in ASP julyclyde (original work) The author is Microsoft China Community Star in February. When programming, transactions are often needed. The so-called transaction is a series of operations that must be successful. As long as one operation fails, all other steps must also be cancelled. For example, using ASP to develop a network hard disk system, the user registration part needs to do: transfer user information