Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invoking Explorer style (x)copy function
Message
From
27/11/2000 19:13:47
 
 
To
27/11/2000 08:40:47
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00445014
Message ID:
00445926
Views:
22
>>The trivial way, if all target systems have the Windows Shell v 4.72 or later installed (Win95 w/ Active Desktop from IE 4, NT 4 with Active Desktop, or anything more recent) is to use the Shell.Application object's methods to do this; use the Namespace method to return a Folder object for the target and call it's CopyHere method.
>>
>>Failing that, you can use the SHFileOperation API call to do that; you'll need either Christof Lange's STRUCT class or my ClsHeap class to manage the data structure that needs to be passed to the API call. It's not terribly hard to implement, but there are two pointers to strings that will need to be saved outside of VFP. STRUCT and ClsHeap can manage this; if Christof has already defined the required data structure, it will already know how to build the structure from the data you must supply.
>>
>
>Ed,
>Thank you for fast response - appreciated.

I've since posted an example of SHFileOperation using ClsHeap in the API section.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform