Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Better way to copy files
Message
From
07/02/2002 12:26:01
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00616676
Message ID:
00616758
Views:
29
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform