Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copyfile
Message
From
24/01/2008 08:52:47
James Beerbower
James Beerbower Enterprises
Hochheim Am Main, Germany
 
 
To
24/01/2008 08:20:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01284907
Message ID:
01284938
Views:
25
Faster might be the file() function.
e.g.
m.lcfile2 = "d:\blah\blah..."
COPY FILE FileName1 TO (m.lcFile2)
if !file(m.lcfile2)
   error "no disk ..."
endif
If you have many many files adir might be a bit slow -- adir does however allow you to check the size of the copied file etc. I think a bunch of people here have written utilities to copy to disk -- you might try to get one if you have something complex. Rather than reinventing the wheel. Alas the last one I had was in FP 2.6 coded and I don't know where it is :-(


>>I am using VFP native command:
>>
>>COPY FILE FileName1 TO FileName2
>>
>>Is there a way to know whether the file has been copied, after
>>command is applied ?
>>
>>Moises
>
>You can use ADIR() to compare the new file to the original.
James Beerbower
James Beerbower Enterprises
Frankfurt, Deutschland
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform