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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement