当前位置:域名频道首页 > 常见问题 > 网页制作 |
| |
| |
fso组件之删除文件 |
| |
|
| |
作者:网站制作部 来自:域名频道 点击:19 时间:2006-8-30 |
|
|
| |
fso删除 fso删除文件
一:物理路径
<% Dim fso Set fso = CreateObject("Scripting.FileSystemObject") fso.DeleteFile "D:\cdqn\html\sjk\a.txt" %>
二:相对路径
<% set fso=Server.CreateObject("scripting.filesystemobject") fileName="a.txt" myFile=Server.MapPath(fileName) if fso.FileExists(myFile) then fso.DeleteFile myFile end if set fso=Nothing %> |
|
|
|
| |
[关闭窗口]
|
| |
|
|
|
|
| |
|
|