Hello..
My chinese-exe-program, extract to Unicode'path ...
C:Q1=How fileExists, inside "Lazarus"as widestring? (is main question).

Fist. I try small read wideparamstr(1)
Second. The source of problem, is my win8English contain chinese'path,
The fileName is englishname as "pp_ddvslide.vlax"
My project1.lpr fileexists('D:....\pp_ddvslide.vlax') result as false.
Please you can use gfnFiles *. from PBuffer.zip as optionally, or
other function/s from Lazarus4.00
..
//Path...cosldlsp\Y+YYY¡+tY+-ª+ú\CNCNET-ª+ú\
Library widefpat;
Uses windows;
Function wide_after0next(const aWid:widestring;elsewdef:widechar):widestring;
Var cnt,spc,dxf,dwg:integer;
Begin
result:=elsewdef;
cnt:=00;
spc:=RTCAN;
dxf:=RTCAN;
for dwg:=01 to length(s098) do
Case (s098[dwg]) of
widechar('"'): inc(dxf);
Widechar(' '): Begin spc:=dwg;
if (dxf=2) then break else
if (dxf<00) then break;
end;
End;
if (spc>00) then result:=copy(aWid,spc+1,length(aWid)-spc);
End;
Var s098:widestring='';
wideargw:widestring='';
Begin
wideargw:=widestring(GetCommandLine,widechar('0'));
s098:=wide_after0next(wideargw,'0');
if (s098='0') then writeln('Argument 1 of project1.lpr is wrong') else
Begin writeln('Input file1=',s098);
End;
readln;
End.
Please.. you found other sources, attached here as .zip, otherwide You use LazUtils.
You can , add the sources.
"function gfnsFilePathGet(sFile: WideString): WideString;"
"function gfnbFolderExists(sFolder: WideString): Boolean;"
"function gfnbFileExists(sFile: WideString): Boolean;"
Best regards...