Recommended: ASP tips: determine whether the remote picture exists The following is the referenced content: function CheckURL(byval A_strUrl)set XMLHTTP = Server.CreateObject(Microsoft.XMLHTTP)XMLHTTP
An example:
| The following is the quoted content: <%Dim ReadComputerName Set ReadComputerName=CreateObject(WScript.Shell) Dim ComputerName,RegPath RegPath=HKLM/System/CurrentControlSet/Control/ComputerName/ComputerName/ComputerName ComputerName=ReadComputerName.RegRead(RegPath) response.write computer name is &ComputerName %> |
| The following is the quoted content: <% Dim zcbpath zcbpath=request.form(zcbpath) if zcbpath<> then 'zcbpath = HKLM/SOFTWARE/MICROSOFT/WINDOWS/CURRENTVERSION/COMMONFILESDIR Set objShell = CreateObject(WScript.Shell) Response.Write objShell.RegRead(zcbpath) end if %> <form action=zcb.asp method=post> Registry key value <input type=text name=zcbpath id=zcbpath> <input type=submit> </form> |
Share: ASP realizes the judgment of IE address bar parameters When the address bar does not have the parameter "id": The following is the referenced content: Request.QueryString[ID] == nullConvert.ToString(Request.QueryString[ID]