Re: Win32Lib copyFile() failure
- Posted by Greg Haberek <ghaberek at gmail.com> Jul 04, 2005
- 567 views
> AFAIK, win32lib uses CopyFileA API for the copyFile function, which is > limited by MAX_PATH ~= 260 chars for the file name. See > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio= /fs/copyfile.asp . > > If you want to copy longer filenames (up to 32K), you should use > CopyFileW which is the unicode version. OK, I found that, too. That's not my issue right now. My main issue is some files just *don't* get copied, with no reason. The file names could be 100 characters and they still fail..The only way I've got the to copy is with open(), get_bytes() and puts(). But then I run out of open file handles when I translate to C. Why, I don't know. I'm closing all the files as I open them. This is very frustrating, as I told my boss I'd have a working example by Tuesday. I was also bragging how well Euphoria works, and now I'm having issues. ~Greg