Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying files and reading directories
Message
 
 
À
08/02/2002 12:00:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00617463
Message ID:
00617499
Vues:
27
This is a serious question even though it sounds sarcastic: If that's all you need, what is all the other stuff in Ed's example for? I'm sure it all serves a purpose since it wouldn't make any sense for him to throw in a bunch of stuff you don't need. I guess what I'm asking is what does his do that yours doesn't? Which probably isn't the best question for you since you said you hadn't used his. :) But maybe someone else reading the thread has used Ed's example and can chime in?

Thanks,

Michelle


>Michelle,
>
>Only a kind of answer to Q1. Never used SHFileOperation.
>It's straight and simple
>
>
>declare Integer CopyFile in win32api string @, string @, Integer
>local FileFrom, FileTo
>
>FileFrom ='C:\tmp\xxx'
>FileTo = 'c:\tmp\yyy'
>if( empty(CopyFile(@File_From, @File_To, 0)) )
>	return FALSE && Failed
>endif
>
>you can find the doc at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/filesio_0x9h.asp
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform