Hi Joe,
VFP adir() can get subdirs when 3rd parameter used ("D"). Somewhere on my disk there is a RemoveTree() function pure VFP. I'll check it for you Michelle but not sure if I'll ever find it again.
Cetin
>What do you mean by "manually"?
>
>You can do this in a DOS batch file if you like...
>
>Joe
>
>>That's more in depth than I want to get. I don't know how to get subdirectories. There's no user interaction. I just need to back up the dir and delete it. I don't need anything from the user.
>>
>>If no one has anything, I guess I'll just do it manually.
>>
>>Thanks,
>>
>>-Michelle
>>
>>
>>>You could do everything you want to do with DOS commands I guess. Combined with some VFP commands...you could write your own class.
>>>
>>>I actually have a question: VFP has a DIR command, but it doesn't list subdirectories. Do you know how to list subdirectories with a VFP command?
>>>
>>>I know how to get around this with DOS commands and then parsing a text file, but I am wondering if there is something similar.
>>>
>>>I don't know how much control you want the user to have. FILER gives the user a lot of control I think...I haven't looked into it too much though...
>>>
>>>
>>>Joe
>>>
>>>
>>>>Does anyone have a class/program/whatever for handling things like deleting files and such?
>>>>
>>>>I need to copy a directory with files and other directories to a backup directory, then delete the dir and all the stuff in it. I can do it by going to each directory and deleting and then removing each dir, but I was hoping there was a simpler way.
>>>>
>>>>No luck finding such a thing in the files section.
>>>>
>>>>Thanks,
>>>>
>>>>-Michelle