if FileExists fail as because AssianPath with filename inside NTFS.english.drive lazarus / 34-Windows ---------------------------------------------------------------------- d2010 · 2025-07-04 12:55 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  .. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i //Path...cosldlsp\Y+YYY¡+tY+-ª+ú\CNCNET-ª+ú\Library  widefpat;Uses windows;Function wide_after0next(const aWid:widestring;elsewdef:widechar):widestring;Var cnt,spc,dxf,dwg:inte ger;Begin result:=elsewdef; cnt:=00; spc:=RTCAN; dxf:=RTCAN; for dwg:=01 to length(s098) do    Case (s098[dwg]) ofwidechar('"'): 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... ---------------------------------------------------------------------- gues1 · 2025-07-04 17:11 I had found that prefix '\\?\' to file name sometimes help (not only with "max length path" limits). Example: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   filename := '\\?\D:....\pp_ddvslide.vlax';