function FSOlinewrite(filename,lineNum,Linecontent) if linenum < 1 then exit function dim fso,f,temparray,tempCnt set fso = server.CreateObject("scripting.filesystemobject") if not fso.fileExists(server.mappath(
FSO由微軟公司提供支持,對于非Windows系統(tǒng),大概不能再使用ASP。1.文件操作,取文件大小1 2 3 4 5 6 7 8 9 10 11 12 13 Function GetFileSize(FileName) '//功能:取文件大小 '//形參:文件名 '//返回值:成功為文件大小,失敗為-1 '// Dim f If ReportFileStatus(FileName) = 1 Then Set f = fso...
因為使用了服務(wù)器端,Internet Explorer 默認安全設(shè)置不允許客戶端使用FileSystemObject對象。覆蓋那些默認值可能會引起在本地計算機上不受歡迎的對其文件系統(tǒng)的訪問,從而導(dǎo)致文件系統(tǒng)完整性的全部破壞,同時引起數(shù)據(jù)遺失或更糟的情況。 FSO 對象模型使服務(wù)器端的應(yīng)用程序能創(chuàng)建、改變、移動和刪除文件夾,或探測特定的文件夾是...