Well, since Exist() checks for a specified file, and *.* is a wildcard...
Nothing wrong with the function really..
edit: oh, just realized your point. but that's only if you do a complete wildcard... ( *.* )
Reading the usage instructions you realize that the wildcarding supported is *.file-extension or filename.*
Code:

Exist( )
Action: Checks for the existence of one or more files.

Syntax: Exist ("file name")

Parameters: File name

Identifies the file(s) you want to locate.

Remarks: Supports wildcards.

Returns:

0


File not found

1


File found

Examples:

IF EXIST (@LDRIVE + "\users.txt")
DISPLAY @LDRIVE + "\users.txt"
ENDIF

IF EXIST (@LDRIVE + "\*.INI")
; Etc, etc.
ENDIF



Edited by ewook (2006-04-04 11:26 AM)
_________________________
as long as it works - why fix it?
If it doesn't work - kix-it!