Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting folders?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00638521
Message ID:
00638606
Views:
23
>I was reading your article at vfug so I´m triying this:
>
>
>oFSO = CREATEOBJECT("Scripting.FileSystemObject")
>oFSO.DeleteFolder('C:\WINDOWS\Archivos temporales de Internet\Content.IE5', .T.)
>
>
>I´m not sure if I´m missing something, but VFP returns the error:
>
>
>OLE error code 0x800a0046: Unknown COM status code.
>
>
>So I can´t find a good answer for it at VFP Help. Ah! and thanks for help beginners!

I'm assuming that the folder is the temporary IE folder. If so, the return code makes sense. In general it mean access/permission denied. As I mentioned in my initial post, trying to delete system folders is not something I would be in favor of trying. In this case, it isn't the fact that the system attribute is set. It's the fact that, in this instance, the folder is protected by the OS. IOW, you can't delete it.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform