CopyFile and MoveFile
- Posted by Raznato Flaminio <temporaneo at hotmail.com> Apr 24, 2006
- 460 views
I guess all of you know these two simple API functions. I've used them in a software that i'm building through the 2.1 version of euphoria, well when i use simple paths they work perfectly ( for simple path i mean like "c:\sourcedir" or "c:\destdir" for example ) but when i put complex paths like ones of where is retrieved the startup folder or the recent folder that usually are retrieved throguh the api functions dedicated the registry ( es.: regopenkey ) and that appears like "c:\windows...\recent" then these two functions when i put such complex strings fails ofeten giving a code that means that the path can't be retrieved but sometimes work to solve the problem i used a cycle wail that after the copyfile or the movefile use the GetLastError function and when it's ok exit the cycle but seems not a good programming method. Did you experience such problems using complex paths in such api functions ? Any advices for me ? Thank you veyr much...