Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How is used SHFileOperation the function?
Message
From
19/11/1998 13:36:07
 
 
To
19/11/1998 11:31:55
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00159319
Message ID:
00159405
Views:
16
>Hi
>To me would like to make copying, deleting and renaming of files in style Explorer.
>If not it is difficult, show an example of usage of this function in VFP.

Unfortunately, without a wrapper of some sort, it is extremely difficult to do; however, there's an easy fix by adding an automation object!

The Windows Scripting Host (built into Win98 and Win2000, and addable to other environments from a self-installing .EXE available on Microsoft's Web site) makes an automation object, Scripting.FileSystemObject, available for use inside of VFP. This makes virtually all the methods of SHFileOperation available quite easily. the best source of documentation is the current MSDN documentation; look for the topic "FileSystemObject object" in the index, and look at the VB examples. The VFP syntax can be worked out without much effort.
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
Reply
Map
View

Click here to load this message in the networking platform