I think the second option is my best. I don't want to install another ActiveX just for one tiny part of the program. I was just hoping someone had the VFP code written already so I could just call a .prg.
Thanks,
-Michelle
>>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.
>
>There are ActiveX solution available if you have the Windows Scripting Host installed; one of the most useful things in there is the Scripting.FileSystemObject, which has a ton of useful methods for folder and file manipulation. You can install the Windows Scripting Host easily enough in an installation; the executable WSH.EXE available from Microsoft will install it on systems that don't already have it (Windows scripting host is built into Win98, WinNT with Option Pack 4, and WinNT5/Win2000.)
>
>Alternatively, you can write VFP-only code to use ADIR(), ERASE, and RMDIR to recursively copy and delete.
>
>>
>>No luck finding such a thing in the files section.
>>
>>Thanks,
>>
>>-Michelle
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only