one way that comes to mind, kinda of a kludge, but should work...

code:
$UDFfile = "test.kix"
$isUDF = "things"

shell '%comspec% /c type $UDFfile | find /i "function $isUDF" > nul'

if @error = 0
"Function $isUDF was found"
else
"Function $isUDF was NOT found"
endif



Bryce

[ 10 January 2002: Message edited by: Bryce ]