Switch to full style
ASP/ASP.net examples
Post a reply

Delete file

Sun Mar 27, 2011 10:38 pm

Delete file in ASP.net
Code:
<%
Dim objfolderStream, objfileStream
Set objfolderStream
= CreateObject("Scripting.FileSystemObject")
// create a file to be deleted .
Set objfileStream= objfolderStream.CreateTextFile("c:\codemiles.txt", True)
objfileStream.Close
// get a connection again to the file created .
Set objfileStream= objfolderStream.GetFile("c:\codemiles.txt")
objfileStream.Delete
%>
 




Post a reply
  Related Posts  to : Delete file
 delete file in asp     -  
 Delete a file in php     -  
 Encrypt/Decrypt a file from source file to target file.     -  
 DELETE Commands     -  
 Delete directory in php     -  
 Cannot Delete Computer group     -  
 Delete data from database by ID in php     -  
 DML Statements, insert row, delete row     -  
 Delete session variable     -  
 How can I delete inactive friends?     -  

Topic Tags

ASP Files and I/O