PRIVATE cWinSysDir cWinSysDir = "" *-- Find out win sys directory *-- Check for "system32" directory IF NOT EMPTY(SYS(2000, GETENV("WINDIR") + "\system32\*.*")) *-- Use "system32" cWinSysDir = GETENV("WINDIR") + "\system32\" ELSE *-- Check for "system" directory IF NOT EMPTY(SYS(2000, GETENV("WINDIR") + "\system\*.*")) *-- Use "system" cWinSysDir = GETENV("WINDIR") + "\system\" ENDIF ENDIF *-- Check for your file IF NOT EMPTY(SYS(2000, cWinSysDir + "yourfile.txt")) *-- File exists ELSE *-- File doesn't exist ENDIFHTH,