Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting Folder Using WSH
Message
 
To
10/02/2003 10:52:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00751414
Message ID:
00751437
Views:
22
AFAIK, it is:
Microsoft VBScript runtime (0x800A0046). Permission denied.
Or:
The function attempted to access a file without the proper permission setting.


>I am trying to delete a folder using the 'Deletefolder' command of Windows Scripting Host. Below is the code I am using:
>
>lcExtendedPath = 'P:\NewSales\Unzipped_files\NewSales'
>
>oFSO = CREATEOBJECT('Scripting.FileSystemObject')
>oFSO.DeleteFolder(lcExtendedPath, .T.)
>
>
>I keep getting the following error when I run this:
>
>'OLE Error Code 0x800a0046: Unknown COM Status Code'
>
>If I run this using the Command Window of VFP 7 it works just fine. What am I missing?
>
>Thanks for your help,
>Russell
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform