Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Multiple delete of files with FSO error

Reply
Thread Tools

Multiple delete of files with FSO error

 
 
NIck
Guest
Posts: n/a
 
      07-15-2003

Hello all

I try to do a multiple delete of files through
FileSystemObject, but after deleting the first file, ASP
gives me a "Permission denied" error. Below you see my
code:


Set fso = CreateObject("Scripting.FileSystemObject")
For Each Item in Request.Form("filename")
delFile = path2 & "\files\" & Item
fso.DeleteFile delFile
Next



Anybody can find my mistake?

Thanks
Nick
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FSO delete the very last character in tgext file Carol ASP General 4 07-30-2004 01:33 AM
How can I list all files of a directory with fso or wsh....? Aaron Bertrand - MVP ASP General 1 02-11-2004 07:26 PM
Permission problem on files created by FSO Rik Hoeflaak ASP General 0 01-16-2004 10:06 AM
FSO Deleting Files Problem Gav ASP General 2 01-04-2004 07:45 PM
FSO and uncode files asim ASP General 0 08-19-2003 07:27 AM



Advertisments