Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows FileCopy
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00351014
Message ID:
00351066
Vues:
23
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform