DECLARE INTEGER FindExecutable IN Shell32 ; STRING File, STRING DefaultPath, STRING Exe lc_buffer = SPACE(254) IF FindExecutable('my.doc','',@lc_buffer) > 32 ? lc_Buffer ENDIFThe file will have to exist, but you could just create a dummy file that has that extension just to find the EXE.