you have to detete files/folder contained in it, before
-----Messaggio originale-----
Da: Arundhati Bopardikar [mailto:Bopardikar@Q...]
Inviato: marted́ 30 luglio 2002 17.47
A: ASP Databases
Oggetto: [asp_databases] Whats wrong with this code?
Hi,
I am trying to delete a folder using ASP filesystemobject with something
like the
following code
dim Readstr
dim fldr
dim fp
dim FilePath
FilePath = "C:\Folder1\Abc.txt"
Readstr = Split(FilePath,"\")
fldr = Readstr(0) & "\" & Readstr(1)
set fp = Server.CreateObject("Scripting.FileSystemObject")
If fp.FolderExists(fldr) Then
fp.DeleteFile fldr
End If
set fp = nothing
However, the script just hangs and does nothing...
can anyone help??
Regards,
Arundhati