FSO Deleting Files Problem

G

Gav

Hi
i'm using the following code to delete a file but when i execute the script
it just freezes until timeout. any idea of the problem??

'///DELETE ORGINAL FILE
Dim objFSO
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFile "C:\Documents and Settings\Gav\My
Documents\Date\Website\www\user_images\" & filename
Set objFSO = Nothing
 
S

Steven Burn

<%
Dim FSO
Dim fl
Set FSO = CreateObject("Scripting.FileSystemObject")
Set fl = FSO.DeleteFile(Server.MapPath("images/" & file.name))

Set FSO = Nothing
Set fl = Nothing

%>

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top