Hello,
I’m sure I missing something here but i just don't see it...I’m trying to delete a folder using the FileSystemObject property. for some reason it returns an error.
ERROR---------
Error Type:
Microsoft VBScript runtime (0x800A0034)
Bad file name or number
/webreports_deletefolder_update.asp, line 25
here is my code
i have checked the path it is the FULL path to the folder. oddly i have replaced the "objSourceFolder" variable with a hard coded file path (example C:\Folder1\Folder2) and it worked just fine.
any thoughts
thanks
talenx
I’m sure I missing something here but i just don't see it...I’m trying to delete a folder using the FileSystemObject property. for some reason it returns an error.
ERROR---------
Error Type:
Microsoft VBScript runtime (0x800A0034)
Bad file name or number
/webreports_deletefolder_update.asp, line 25
here is my code
Code:
<%
Dim objSourceDelete
objSourceDelete= Request.Form("fr_deletesource")
Set objFso = Server.CreateObject("Scripting.FileSystemObject")
If objFso.FolderExists(objSourceFolder) Then
'The folder exists!!
objFso.DeleteFolder(objSourceFolder)
Else
response.write "No folder found!!"
Response.Write (objSourceFolder)
End If
%>
any thoughts
thanks
talenx