Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove sub-directory programmatically
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00482991
Message ID:
00483317
Views:
12
>just fyi, i tried the dos command - deltree c:\jobname\tempsdir. it works without asking to empty the dir first.

I think that the reason that this is occurring is that VFP's RD probably maps to the same function that the DOS RD command does, rather than DELTREE. However, if you have access to the Windows Script Host, the Scripting.FileSystemObject can do the same thing as the DOS DELTREE command.
oFSO = CREATEOBJECT('Scripting.FileSystemObject')
oFolder = oFSO.GetFolder("c:\jobname\tempsdir")
oFolder.Delete
George

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

Click here to load this message in the networking platform