Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting all files in a directory
Message
From
11/04/2003 18:18:31
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00776809
Message ID:
00776827
Views:
11
Allan,

>
>If I use erase, the file is not deleted. If I use adir() the file is in the resultant array, but again does not delete. If I try to remove the 'hidden' attribute with 'run attrib -h filename.ext', the attribute is not removed.
>

Are you able to remove the attribute from the command prompt? Also, you aren't by any chance putting "/n" in your run command are you? (this prevents it from working on my XP machine).

>
>Lastly, I am concerned about forcing the end user to install/enable Windows Script Hosting.
>

WSH is on W2K machines and later...even if they disable the relationship between a .VBS file and WSH, script commands should still work within a program.
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform