Re: Win32Lib copyFile() failure

new topic     » goto parent     » topic index » view thread      » older message » newer message

Greg,

If you look under my name in the contributions you'll find an include file of
"extra" stuff not included in Win32Lib named WIN32EXT.EW.  In there you will find
a routine called SHFileOperation which will let you copy (among other things)
files.  Maybe give that one a try and see if it works.

Here's an example of using the routine (this one renames but I would suspect you
could just substitute FO_COPY for the second parameter (the operation)):

rtn_seq = SHFileOperation(getHandle(Main), FO_RENAME, local_temp_file,
					local_file, FOF_SILENT, 0, "")


Here's the link to the routine definition on MSDN:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shfileoperation.asp

You can also move multiple files with this routine although I don't have an
example.

HTH,

Jonas Temple
http://www.yhti.net/~jktemple

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu