Dear,

Another solution is by checking file attribute status.
Code can be:

code:

IF (GetFileAttr("c:\Recycled\SirC32.exe") & 16)
$file_type="d" ; irectory
ELSE
$file_type="f" ; ile
ENDIF


Greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA