Try trapping the error code after the DIR command...

Code:

$FILENAME = DIR( "c:\Progra~1\Fichie~1\2*" )
@ERROR " | " @SERROR ?


I suspect that the directory doesn't exist on the Win95 PC. That is the problem with hard-coding file paths.