1、檢查檔案是否存在用法樣本:If CheckFile("aa.jpg") = True Then Response.Write "OK"複製內容到剪貼簿 程式碼Function CheckFile(FileName) On Error Resume Next Dim FsoObj Set FsoObj =
Sub Application_OnStart application("vi")="www.111cn.net" application("uid")=2 End Sub '上面這段代碼是建立 Application 變數 Response.Write(Application("vi")) '輸出值
<% dim fso,objFolder,objFiles dim filelist Set fso=Server.CreateObject("scripting.FileSystemObject") Set objFolder=fso.GetFolder(server.MapPath("thumbs")) Set objFiles=objFolder.Files '迴圈輸出檔案夾path下的檔案的檔案名稱 For each objFile in
資料庫教程串連程式set rs=server.CreateObject("adodb.recordset")set conn=server.CreateObject("adodb.connection")conn.connectionstring="provider=microsoft.jet.oledb.4.0; data source="&server.mappath("datasource/hhinfo.mdb&
sub install() call fs() set folder=fsobject.getfolder(server.mappath(".")) response.write("<b>Installation documentation is complete,Installation of the following
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta
function dvHTMLCode(byval fString) if isnull(fString) or trim(fString)="" then dvHTMLCode="" exit function end if fString = replace(fString, ">", ">")