Re: CopyFile and MoveFile

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

> 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 whe=
n 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 regist=
ry ( es.: regopenkey ) and that appears like "c:\windows...\recent" then th=
ese two functions when i put such complex strings fails ofeten giving a cod=
e that means that the path can't be retrieved but sometimes work to solve t=
he 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 g=
ood programming method. Did you experience such problems using complex path=
s in such api functions ? Any advices for me ?

Are these paths longer than 255 characters? If so, you'll need to use
the Unicode alternatives. Check out my win_dir in the Archive.

~Greg

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

Search



Quick Links

User menu

Not signed in.

Misc Menu