Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows FileCopy
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00351014
Message ID:
00351066
Views:
22
>>>I know I've seen it here, but can't find the print I made...I apologize in advance for the redundancy.
>>>
>>>What is the syntax for calling the native Windows FileCopy - so I can copy temp.dbf from K:\production to C:\windows\temp?? I want the user to see the AVI since its a several second copy.
>>>
>>>TIA
>>
>>Phil,
>>
>>Are you referring to the Shell.Application object?
>>oShell = CREATEOBJECT('Shell.Application')
>>* lcdir is the target directory
>>oFolder = oShell.GetFolder(lcdir)
>>* lcfiles is the filename
>>oFolder.CopyHere(lcfiles)
>
>George and Ed,
>
>This is exactly what I was lookng for. But after the CREATEOBJECT line, I get an error dialog: "OLE Error Code 0 x 80040154 Class Not Registered"
>
>Help?

Phil,

Check the version number of Shell32.dll. It must be at least 4.0. The constants that Ed supplied in some cases require at least version 4.71 and 5.0 in others.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform