FileSystemObject Delete Folder

Results 1 to 2 of 2

Thread: FileSystemObject Delete Folder

  1. #1
    Join Date
    Dec 1969

    Default FileSystemObject Delete Folder

    Hello,<BR><BR>I have been trying to write an application to delete a folder from my web site. Here&#039;s the code.<BR><BR> strPage = RS("strPgName")<BR> strPage = Server.MapPath("/blog/"& strPage & "/")<BR> Dim obj<BR> Set obj = Server.CreateObject("Scripting.FileSystemObject")< BR><BR> &#039;Delete the folder<BR> set del = obj.GetFolder(strPage)<BR><BR>When I run this code I get this error:<BR><BR>Error Type:<BR>Microsoft VBScript runtime (0x800A01A8)<BR>Object required: &#039;DeleteFolder(...)&#039;<BR>/blog/admin/delete.asp, line 41<BR><BR>But it WORKS! It actually deletes the folder. So why am I getting this error?<BR><BR>Thanks,<BR><BR>Clint

  2. #2
    Join Date
    Dec 1969

    Default check out documentation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts