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:
00351033
Vues:
21
>>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)
There are a bunch of optional flags that can be included as a second parameter to indicate whether you want various dialogs, recursion, etc. The values are defined in SHELLAPI.H
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform