'通過fso設(shè)置文件屬性 Set fso=Server.CreateObject("Scripting.FileSystemObject") Set file=fso.getFile(pathfileName) file.attributes=2+4 '設(shè)置文件屬性為隱藏+系統(tǒng)
'通過shell.Application修改文件的最后修改時間 Set shell=Server.CreateObject("Shell.Application") Set app_path=shell.NameSpace(server.mappath(".")) Set app_file=app_path.ParseName(fileName) app_file.Modifydate=newTime