Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File functions
Message
From
11/12/1998 14:56:13
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00166520
Message ID:
00166708
Views:
9
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
Map
View

Click here to load this message in the networking platform