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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting Files

Status
Not open for further replies.

zakd

Programmer
Dec 11, 2001
21
0
0
GR
How do i delete files from asp code?

strfile = Server.MapPath("Photos") & "/" & "photo.gif"
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
fso.DeleteFile (strfile)

I use this coce and it doesn't works, Please Help Me
 
What if any error? Does the account being used have the correct permission?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top