Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy Files using ShFileOperation
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Copy Files using ShFileOperation
Divers
Thread ID:
00727693
Message ID:
00727693
Vues:
60
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform