Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting Folder Using WSH
Message
From
10/02/2003 10:52:07
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Deleting Folder Using WSH
Miscellaneous
Thread ID:
00751414
Message ID:
00751414
Views:
56
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
Next
Reply
Map
View

Click here to load this message in the networking platform