【Asp】ASP查询纯真IP数据库 QQwry.dat

ASP查询纯真数据库QQwry.dat: <% Function Look_Ip(IP)  Dim Wry, IPType, QQWryVersion, IpCounter  Set Wry = New TQQWry  IPType = Wry.QQWry(IP)  Look_Ip = Wry.Country & " " & Wry.LocalStr End Function Function GetIpInfoAv(IP, sType)  Dim Wry, IPType  Set Wry = New TQQWry  IPType = Wry.QQWry(IP)    Select Case sType   Case 1 GetIpInfoAv = "document.write(""" & IP & """);"   Case 2 GetIpInfoAv = "document.write(""" & Wry.Country & """);"   Case 3 GetIpInfoAv = "document.write(""" & Wry.LocalStr & """);"   Case Else Ge

【Asp】Asp读取Base64编码的xml格式图片

保存图片数据的Test.xml: <?xml version="1.0"?> <data> <![CDATA[ R0lGODlhIwAqAOYAAOfq9ImGtLd0iaaix8bE2gCL2v/3AO+WDe6amWpjmQWR2rq30gCb5ud7eZVO b//oANjSDOInMv/7++qGgxQpi8kzQ/KlC/fDB5ycwlhHTv3m5ZWUvNx0dltYmFdJmkg2Vy4ZaxcN blRuo6CMKsG+1zl6tdHS43tZgdjO3VxIjbk7UPT0+K5BWmxro/GNiPmcleyioZyV0+dzb5N7MRKM 0gCh7H53q+eBfmRPkVponQV3yP7aAeHdBfCpqAlqundoOdnY5yqFyElEi/a7udvb6bKxzvnJx083 ghsfeaNGYe7u9eHe6uXl783M4DsnXPS2CAtDmg06neniBbmmv+Ftbf3z8/Skn7WrywWDzwxTpxuJ zqOYvvva2el1EdCquNPb7pWAqNzk8To4gzUwd5ejzI+Lt09MkI+WwXl/tGZwrHhso2pXlrG62OrE yMCyHaury/XNB4OCsqicwd6do/P//+98ds+Bi1JRlNzDzM3W6bvF4eStsv6zrACV4ACT3f///yH5 BAAAAAAALAAAAAAjACoAAAf/gFQIg4SFhoeIhjIyf42Oj5CRkpA3MhKOJAMDMZydnp+emiSPE5aO OCEhHxmsrayrH7GyTiCpKaSmjSkhIxBSv1I8wsMQPBDHyD8hHo+Vl40eGQbTD9XU19PZ01JOt47O jh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wMYEX bDSBHRFAJAACElD4oMPhPrwNghq40msCABzAEMkQDWigRxxlDPDHClekAEItqXyOwxUSENHCHXec YUXXkfQwAXZlLEDEGyasQEIZNuS+RRMrEPHZBjkE4MANGkwiQQ8u4PFFGDZ0YMMSC7yxgBJNFAHE AgmM0cLcdkxQ/CR/SDCEXgtDEEBGC7G3kHvPd8RBwB1poOHFCy98D34jXCDg7hZ5fGFDC3FQgg2E kIMvsGEKMLjBEKpwP0hUwQhWmEAP2jCFNwALAzYAgxdcxwf7NdCBGjBCDxDRAyNoACGSCAQAOw== ]]> </data> 生成1.gif,Test.asp: <% Dim xml :

【Asp】ASP读取文件 ASP写入/保存文件

ASP读取文件: 简洁版: CreateObject("Scripting.FileSystemObject").OpenTextfile(Server.MapPath("Muma.txt"),1,False).Readall 完整版: set fs=server.createobject("scripting.filesystemobject") file=server.mappath("pic/fuck.txt") set txt=fs.opentextfile(file,1,true) if not txt.atendofstream then line=txt.readall 'ReadLine从文件中读取一行数据;Read(N)从文件中读取N个字节的数据;Re

ASP获取客户端、服务器相关信息

ASP获取客户端、服务器相关信息: Request.ServerVariables("NUMBER_OF_PROCESSORS") CPU 数量 Request.ServerVariables("OS") 操作系统 Request.ServerVariables("Url") 返回服务器地址 Request.ServerVariables("Path_Info") 客户端提供的路径信息 Request.ServerVariables("Appl_Physical_Path") 与应用程序元数据库路径相应的物理路径 Request.ServerVariables("Path_Translated") 通过由虚拟

【Asp技巧】Asp Fso各种操作文件实例代码

FSO操作文件夹的各种实例代码 Dim Fso Set Fso = Server.CreateObject("Scripting.FileSystemObject") 设置文件属性: Set Fso = Createobject("Scripting.FileSystemObject") Set File = Fso.GetFile("c:\a.txt") File.Attributes = 0 读取属性: Response.Write File.Attributes 可选的。规定文件或文件夹的属性值。 可采用下列值之

【VB技巧】VB半透明窗口效果实现代码

VB半透明窗口效果实现代码: Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long Private Const WS_EX_LAYERED = &H80000 Private Const GWL_EXSTYLE = (-20) Private Const LWA_ALPHA = &H2 Private Const LWA_COLORKEY = &H1 Private Sub Form_Load()     Dim Rtn As Long     Rtn = GetWindowLong(hwnd, GWL_EXSTYLE)     Rtn = Rtn Or WS_EX_LAYERED     SetWindowLong hwnd, GWL_EXSTYLE, Rtn     SetLayeredWindowAttributes hwnd, 0, 200, LWA_ALPHA End Sub

【VB技巧】VB不失真提取ico图标并保存

Option Explicit Private Type PicBmp     Size  As Long     tType As Long     hBmp  As Long     hPal  As Long     Reserved As Long End Type Private Type GUID     Data1 As Long     Data2 As Integer     Data3 As Integer     Data4(7) As Byte End Type Private Declare Function OleCreatePictureIndirect Lib "olepro32.dll" (PicDesc As PicBmp, RefIID As GUID, ByVal fPictureOwnsHandle As Long, IPic As IPicture) As Long Private

【VB技巧】使用 NTSVC.ocx 控件做系统服务

Private Sub NT_Start(Success As Boolean) '服务开始事件请求     Success = True End Sub Private Sub NT_Pause(Success As Boolean) '服务暂停事件     NT.LogEvent svcEventError, svcMessageError, "Service paused"     Success = True End Sub Private Sub NT_Continue(Success As Boolean) '服务继续     Success = True     NT.LogEvent svcEventInformation, svcMessageInfo, "Service continued" End Sub Private Sub NT_Control(ByVal mEvent