Yuri,
Thank you very much for your help. Do I understand correctly that I need to use the code you wrote in a VFP program, right?
Also, how have you determined that the CSIDL_FAVORITES is 6? (my Favorites folder).
>VFP or DOS COPY/XCOPY commands do not support/recognize unicode. You may use this instead:
>
>
>oFSO = CREATEOBJECT("Scripting.FileSystemObject")
>
>lcpath = space(255)
>DECLARE SHGetSpecialFolderPath IN SHELL32.DLL ;
> LONG hwndOwner, ;
> STRING @cSpecialFolderPath, ;
> LONG nWhichFolder
>CSIDL_FAVORITES= 6 &&Favorites Folder
>SHGetSpecialFolderPath(0, @lcpath, CSIDL_FAVORITES)
>lcpath=SubStr(RTrim(lcpath),1,Len(RTrim(lcpath))-1)
>
>FOR EACH ofile IN oFSO.GetFolder(lcpath).Files
> ?ofile.name
> ofile.copy("a:\")
>endfor
>
>
>
>
>>I want to copy all my IE Favorites from the computer to a CD (to be used on another computer). But when I attempt to copy them the process is interrupted as soon as COPY command comes across a long file name (I think it is 64 characters long, but I am not sure). I tried using dos XCOPY command but the same problem.
>>
>>Any suggestions?
>>
>>Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham