Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP/Scripting Host (Shell Object) tip
Message
From
22/11/1999 12:53:58
 
 
To
22/11/1999 10:17:46
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00292982
Message ID:
00293971
Views:
43
>>>>Set winShell = CreateObject("Shell.Application")
>>>>winShell.NameSpace("c:\Destination folder\").CopyHere "L:\Source folder\MyFile.dbf"
>>>>Set winShell = Nothing
>>>
>>>This is an excellent tip, Igor. But you should have also pointed out that this function also uses the Windows file copy animation when copying large enough files. For anyone interested, Here is a VFP translation of the code to copy a file:
>>>
>>>oShell = CREATEOBJECT("Shell.Application")
>>>oShell.NameSpace("c:\").CopyHere("c:\\somefolder\somefile.dbf")
>>
>>Hi Eric,
>>
>>Moreover, this function asks to confirm overwriting files too.
>>
>>Igor
>I am trying to createobject and I have "Class not registered". Can you tell me what is wrong?
>Thanks Mark

Quoting george from another message in this thread:

You've got to have version 4.71 (or later) of Shell32.dll installed. From my reading of the docs, it willl be with Win 98 or IE 4.0 or above.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform