|
|
| FSO组件操作实例技巧(1) |
| 作者:不详 来源:不详 发布时间:2006-8-13 0:29:50 发布人:chinazhan |
减小字体
增大字体
四,file.Delete 很显然,就是直接删除文件了。 4,delfile.ASP <%whichfile=Server.MapPath("cnbruce.txt") Set fso = CreateObject("Scripting.FileSystemObject") Set f1 = fso.CreateTextFile(whichfile,true) f1.Write ("This is a test.My Name is cnbruce.") f1.Close Set f2 = fso.GetFile(whichfile) f2.move "d:\"Set f3 = fso.GetFile("d:\cnbruce.txt") f3.delete %> <a href="d:\">查看下是没有该文件的</a> 当然FSO还没有结束,比如上传文件,ASP转HTML等都需要用到FSO。 做人要厚道,请注明转自chinazhan中国站长(www.ChinaZhan.com)。
|
| |
|
[]
[返回上一页]
[打 印]
[收 藏] |
|
| ∷相关文章评论∷ (评论内容只代表网友观点,与本站立场无关!) [更多评论...] |
|
|