Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting empty directories
Message
 
 
To
30/06/2010 08:20:16
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
MySQL
Miscellaneous
Thread ID:
01471056
Message ID:
01471058
Views:
123
This message has been marked as the solution to the initial question of the thread.
This should work
lcDir = ...
IF ADIR(laDummy, ADDBS(lcDir) + "*.*","HSD") = 2
  * Empty directory
ENDIFG
>
>I have a cursor with all directories under a given startpoint (d:\unimportantdata)
>as result from an adir command.
>As first step i want to delete all empty directorys, but i don't know how to determine
>that the directory is empty?
>
>How can this be done with VFP 9.2 ?
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform