国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > ASP > 正文

asp fso操作類

2024-05-04 11:08:40
字體:
來源:轉載
供稿:網友
Fso類實現代碼,學習asp類的朋友可以參考下。這個代碼比較老了。
 
 
 
復制代碼代碼如下:

<% 
'================================================================ 
'= 系統版本:1.0 = 
'= 文件版本:1.0 = 
'= 文本創建日期:2005-10-31 = 
'================================================================ 
Class Cls_IO 
Private FileSystemObject 

Private Sub Class_Terminate() 
If IsObject(FileSystemObject) Then 
Set FileSystemObject = Nothing 
End If 
End Sub 

'//創建FileSystemObject對象 
Public Function Init_Object() 
On Error Resume Next 
If Not IsObject(FileSystemObject) Then 
Set FileSystemObject = Server.CreateObject("Scripting.FileSystemObject") 
If Err.Number <> 0 Then 
Init_Object = False 
Err.Clear 
Exit Function 
Else 
Init_Object = True 
End If 
End If 
End Function 

Public Sub DeleteFile(ByVal Str) 
On Error Resume Next 
Call FileSystemObject.DeleteFile(Server.MapPath("../UpLoadFile/"&Str)) 
End Sub 

Public Function IsFolder(ByVal Str) 
IsFolder = FileSystemObject.FolderExists(Str) 
End Function 


Public Function ShowFolder(ByVal Str) 
Dim Obj_Folder,Obj_File 
Set Obj_Folder = FileSystemObject.GetFolder(Server.MapPath(Str)) 
Set ShowFolder = Obj_Folder.Files 
Set Obj_Folder = Nothing 
End Function 

End Class 
%>

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 淮安市| 衡山县| 红原县| 崇左市| 内丘县| 楚雄市| 迭部县| 泌阳县| 宜宾市| 石景山区| 拜城县| 汪清县| 石家庄市| 义乌市| 和田市| 绥宁县| 舞阳县| 涞水县| 晋江市| 中方县| 黄龙县| 德惠市| 洪洞县| 廉江市| 绿春县| 海口市| 新野县| 清镇市| 鸡泽县| 壶关县| 抚宁县| 剑河县| 贡山| 博湖县| 高台县| 茌平县| 绥德县| 库尔勒市| 九台市| 恩施市| 台江县|