I'm trying tu use File.Exists in my DirApp directory but always returns false even if the file exists. The problem seems to be the 8.3 naming for the directories. For example, if I look for this file:
name="C:\Fuentes\Basic4Mac\ZiECG_JV\Objects\PDFEcg\ANGEL_MERINO_GUZMAN_1_0.PRM.PDF"
file.exists("",name) returns TRUE but, if I use
file.exists(DirApp,"\PDFEcg\ANGEL MERINO GUZMAN 1_0.PRM.PDF") or
file.exists("","C:\Fuentes\BASIC4~1\ZiECG_JV\Objects\PDFEcg\ANGEL MERINO GUZMAN 1_0.PRM.PDF) it returns FALSE as DirApp is C:\Fuentes\BASIC4~1\ZiECG_JV\Objects
Any idea what am I doing wrong?
name="C:\Fuentes\Basic4Mac\ZiECG_JV\Objects\PDFEcg\ANGEL_MERINO_GUZMAN_1_0.PRM.PDF"
file.exists("",name) returns TRUE but, if I use
file.exists(DirApp,"\PDFEcg\ANGEL MERINO GUZMAN 1_0.PRM.PDF") or
file.exists("","C:\Fuentes\BASIC4~1\ZiECG_JV\Objects\PDFEcg\ANGEL MERINO GUZMAN 1_0.PRM.PDF) it returns FALSE as DirApp is C:\Fuentes\BASIC4~1\ZiECG_JV\Objects
Any idea what am I doing wrong?