>I am running into an issue in which I need to delete a directory that is not empty - it is filled with misc directories.
>example C:\dir1\dir2\dir3\dir4
>I want to shortcut the delete simply c:\dir1 *.* and in the process remove whatever other directories are tucked away in there .... - I am getting error message 'the directory is not empty'
>old solution is RM -f
>Is there a way to run the effect of the RM -F in VFP by using a short program.
>Or any other routes I might try?
>
>tnx
>k
You can use Windows File System Object
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
LCPATH = "C:\Your Folder Name"
oFSO.DeleteFolder( LCPATH )
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.