Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy Files using ShFileOperation
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Copy Files using ShFileOperation
Miscellaneous
Thread ID:
00727693
Message ID:
00727693
Views:
59
Hi everybody,

I implemented copy files using a FAQ by Ed Rauh. I guess, I'm doing something wrong, because I'm getting an error on
=RtlCopyLong(@cString, BITOR(tnNum,0), 4) line. tnNum is undefined at this point.

Here is my code:
lcFile = forceext(alltrim(.list(m.lnI,1)),"*")
     				if CopyFiles(m.dir_Download+ m.lcFile, ;
     				  m.dir_Lookups+ m.lcFile,'Copy')
     				  erase (m.dir_Download+ m.lcFile)
     				endif
where m.dir_Download = "G:\REDP\Appl\DataEntry\Data\Download\"
m.dir_Lookups = "G:\REDP\Appl\DataEntry\Data\Lookups\"

and lcFile = ISSUE.*

When I tried it with Move parameter, it returned can not create Issue folder (weird). I'm trying with "Copy" and it gives me this error.

Could you please help?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform