Hey folks,
This is driving me totally bonkers.
I'm running a command to delete a folder by using.
When that runs - it will response.write the directory like this
This is driving me totally bonkers.
I'm running a command to delete a folder by using.
Code:
Set BDFSO = CreateObject("Scripting.FileSystemObject")
on error resume next
response.write strText5 & "\" & strText8 & "<BR>"
BDFSO.DeleteFolder(strText5 & "\" & strText8), True
on error goto 0
set BDFSO=nothing
When that runs - it will response.write the directory like this
Code:
c:\some_place\another\last_folder
[code]
That folder is usually 3 deep with subfolders
seems great, but it freaks. It will sometimes delete everything properly, sometimes will delete all but the main folder, sometimes the main folder and a random one or two.
If I remove the error checking, sometimes it will not give any error, sometimes it will toss a permissions error. IUSR_machinename has full control - I also tried everyone full control. There are no denies at all.
I've got it running in other spots that are only 2 deep and it deletes it perfectly.
Any ideas or should I try for a more robust method of cycling through each and every subfolder and each file?
Thank you
Stuart