I come to summarize an ASP FSO tutorial--asp Delete method, which has two instances, simple and practical, want to see a friend can pay attention to.
ASP FSO Tutorial: ASP Delete method
The deleted method deletes the specified file or folder.
Grammar
fileobject.delete[(Force)]folderobject.delete[(force)]parameterdescriptionforce
Optional A Boolean value that indicates whether a read-only file or folder will be deleted. It is true that read-only files/folders will be deleted and falsely represented, and it will not be deleted. The default is False.
To a delete operation instance of the file.
<%dim fs,fset fs=server.createobject ("Scripting.FileSystemObject") set F=FS. GetFile ("C:test.txt") F.deleteset f=nothingset fs=nothing%>
Let's take a look at a folder operation example Tutorial.
<%dim fs,foset fs=server.createobject ("Scripting.FileSystemObject") set FO=FS. GetFolder ("C:test") fo. Deleteset Fo=nothingset fs=nothing%>
"Recommended"
1. Share ASP FSO Delete file DeleteFile and folder DeleteFolder instance code
2. asp Deltextfile Delete the specified file instance under the specified folder tutorial