ASP Delete Method
Complete Folder Object Reference
The Delete method deletes a specified file or folder.
Syntax
FileObject.Delete[(force)]
FolderObject.Delete[(force)]
|
| Parameter |
Description |
| force |
Optional. A Boolean value that indicates whether a read-only file or folder are
to be deleted. True indicates that a read-only file/folder will be deleted and false indicates that
it will not be deleted. Default is false. |
Example for the File object
<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:\test.txt")
f.Delete
set f=nothing
set fs=nothing
%>
|
Example for the Folder object
<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\test")
fo.Delete
set fo=nothing
set fs=nothing
%>
|
Complete Folder Object Reference
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|