Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
All Methods
File Object
METHOD: File.Delete
Implemented in version 3.0
object.
Delete
[force]
The method used to delete the file relating to the specified
File
object. The
force
parameter is a Boolean value -
True
allows the deletion of read-only files while
False
(the default) does not.
Note that trying to delete a file that doesn't exist will cause an error.
Code:
<%
dim filesys, demofile
set filesys = CreateObject ("Scripting.FileSystemObject")
set demofile = filesys.CreateTextFile ("c:\somefile.txt", true)
set demofile = filesys.GetFile("c:\somefile.txt")
demofile.Delete
%>
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information