web tools rank checker

domain .cn
.net .cn .com.cn
你正在阅览 :: 简体中文:: 学习 ASP SQL VB HTML code

学习 .ASP SQL HTML XML CSS JAVA Perl code study
English Chinese_Traditional Chinese_Simplified

你正在阅览 :: 简体中文 Chinese_Simplified

学习.主题:
首页
ASP
. Active-Server-Flash
. Array
. Connection
. Count
. Counter
. Distinct
. Email
. File
»Create
»delete
»File-obj-Count
»Move
»ReadAll-ReadLine
»Server.MapPath
. Folder
. Function
. GetSQLserver
. Header
. mySQL
. Record
. Recordset
. Request
. Response
. Server
. Server-CreateObject
. ServerVariables
. Session
. Special-Symbols
. String
. Sub
. Time
CSS
Ecommerce
HTML
InternetProtocol
JAVA
Microsoft
Robots
SearchEngine
SQL
SQLserver
VBscript
XML

SiteMap

3w....学习.教学 > ASP > file » delete

3w learning

file >
delete

Title:

to delete an exist file (can be .txt .asp .php .jpg .pl ...any file)


删除一已经确认存在的档案
Description:

To delete a file " a.txt " Set fso=Server.CreateObject("Scripting.FileSystemObject") often be used Path : identify the root on server FileExists : to make sure the file is exist , or it will not working fine


Set fso=Server.CreateObject("Scripting.FileSystemObject") 
常被使用在档案与数据夹的呼叫

Path : 可帮助束记数据主机路径

FileExists : 确认是否存在后才执行是不可缺保障检查,免得出现错误讯息
Example Code:

<% dim fso Set fso=Server.CreateObject("Scripting.FileSystemObject") Path="c:\myWebDir\" if fso.FileExists(Path&"a.txt") then fso.DeleteFile(Path&"a.txt") end if set fso=nothing %>


删除一个若存在的档案
(注意: 这理不是资料夹)
(若要查folder 资料夹可到 ASP>Folder)
Example Result:


if the a.txt exists then will be deleted if not exisits then do nothing


如果 a.txt 存在, 则删除此档案
若不存在, 则略过
..
...
...

[ 7/27/2008 ]

www learning school add more scripts and tips memo
You are at >>3WS.EZER.COM >> 3WS.EZER.COM/ASP/FILE/DELETE.ASP>>ASP
Helpful link:: SEO web tools :: Live PR | SERP checker
back to top Ezer code adding :: Questions ;email