Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

deleting a file

Status
Not open for further replies.

rbauerle

Programmer
Oct 16, 2001
48
BR
Is it possible for me t delete a file with asp. I mean:
the file is generated by asp script, then the user downloads it and then i need it to be deleted. How can I do it?
 
Dim oFSO

Set oFSO = Server.CreateObject("Scripting.FileSystemObject")

oFSO.DeleteFile ("filepath/filename")

Set oFSO = Nothing
 
if you response.redirect to the pdf file, and the user's browser has the file type defined, the browser will open the file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top