Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How would you set up API_AppRun to copy a few files?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00210755
Message ID:
00211425
Vues:
24
>>I am presently building a wizard that will have to process an ASCII file.
>>
>>This file should be made off an unknown number of smaller ASCII files.
>>
>>So I thought it was a good opportunity to give API_AppRun a ride.
>>
>>lcCommandLine = "COPY.EXE *.* CODA.TXT"
>>loDosProc = CREATEOBJECT( "API_AppRun",lcCommandLine, , "HID" )
>>loDosProc.LaunchAppAndWait()
>>
>>etc...
>>
>>I can make Ed Rauh examples work (the ones with NotePad), but not this one. What am I doing wrong?
>>
>
>COPY is an internal command - there is no COPY.EXE to run. Try it using XCOPY instead.
>
>An even better choice would be to use the Windows Scripting Host's Scipting.FileSystemObject (assuming you're willing to make sure it's installed on the target system), or the Win32 API CopyFile() command (I posted an example of using it to copy a file to the PRN device in the past day or so.)
>
>>José

xCopy won't work for multiple files.

If it can't be done in one way, do it differently! Well, instead of copying the small ASCII files into one master ASCII file, I imported the files one by one into a master DBF...



José
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform