Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Better way to copy files
Message
De
07/02/2002 12:26:01
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00616676
Message ID:
00616758
Vues:
30
This message has been marked as a message which has helped to the initial question of the thread.
Michelle,

I'd bet a nickel that the code with the alltrim() won't choke *grin*.

I don't think it matters, but what OS are you on? And if it does choke (with the alltrim()), I'm still curious about the contents of lcFromPath & lcToPath at that point.

That is, if you don't mind trying it :)

>LOL! That's the code I started with. :) Well, minus the alltrim part since there aren't any trailing spaces. But the COPY FILE line is exactly my original code. That's what chokes and what prompted me to ask for help. :)
>
>Thanks,
>
>Michelle
>
>>Michelle,
>>
>>Ahhh...these are memo fields. The following should work, and should be faster, especially if you are copying a whole bunch of files. EXECSCRIPT() has to compile the line each time it executes.
>>
>>
>>local lcFromPath, lcToPath
>>
>>lcFromPath = alltrim(mFromPath)
>>lcToPath = alltrim(mToPath)
>>copy file (lcFromPath) to (lcToPath)
>>
>>
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform