Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying files and reading directories
Message
From
08/02/2002 12:06:06
 
 
To
08/02/2002 12:00:38
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00617463
Message ID:
00617499
Views:
26
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform