Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recursive Remove Directory
Message
 
 
To
10/12/1999 17:25:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00302015
Message ID:
00302127
Views:
29
Mike,

You also HAVE to have LOCAL I

>
>
FUNCTION RemoveDirectory
>lParameters dirpath
>local entries, aRemDirs[1]
>dirpath = addbs(dirpath)
>
> Dele file (dirpath+"*.*")
>  entries = adir(aRemDirs,dirpath+"*.*","D")
>  If entries >= 0
>    for i = 1 to entries
>      If !Inlist(aRemDirs(i,1),".","..")
>        RemoveDirectory(dirpath+aRemDirs(i,1)+"\")
>      Endif
>    Next
>  Endif
>  RD (dirpath)
>Return && RemoveDirectory
Any luck?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform