programming-examples/asp/More_Code_Snippets/Shows how to delete a file using the Delete method.asp

8 lines
218 B
Plaintext
Raw Normal View History

2019-11-18 14:25:58 +01:00
<%
Dim objFSO, objFile
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.CreateTextFile("c:\test.txt", True)
objFile.Close
Set objFile = objFSO.GetFile("c:\test.txt")
objFile.Delete
%>