Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting a Hidden File
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00200423
Message ID:
00200500
Views:
11
>I want to delete all files is a user chosen dir. I use ADIR() to get a file listing and the command DELETE FILE .... to delete each file using a FOR ... NEXT loop.
>But this fails when it encounters a hidden file.

You can change the file attributes using an API call, and then use the DELETE FILE or ERASE command. There's sample code here on UT under Win32 and other APIs showing how to change file attributes.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform