Hello Rene..,

The problem is that you should change ' C:\Winnt\.. ' in the line: ' $DLL = EXIST ("\\" + $Werkstation + "\c:\winnt\system32\sysybnt.dll") ' in ' C$\Winnt\.. '

The C$ share is the 'Hidden' C-Drive share..!!

No offence intended., but i took the liberty to rewrite your script..!!

code:

:Start
BREAK ON CLS
IF EXIST("V:\afdeling\asb\rene\sysybtndll\werkstations.txt")=0
AT(02,02)"Werkstations.txt doesn't exist!!"
GOTO End
ENDIF
DEL "V:\afdeling\asb\rene\sysybtndll\dll.txt"
$NULL=OPEN(1,"V:\afdeling\asb\rene\sysybtndll\werkstations.txt")
$NULL=OPEN(2,"V:\afdeling\asb\rene\sysybtndll\dll.txt",5)
$Werkstation=READLINE(1)
WHILE @ERROR=0
AT(02,02)"Checking Workstation : "$Werkstation
IF EXIST("\\" + $Werkstation + "\c$\winnt\system32\sysybnt.dll")
AT(04,02)"File sysybnt.dll : Yes"
$NULL=WRITELINE(2,$Werkstation+",Yes"+CHR(13)+CHR(10))
ELSE
AT(04,02)"File sysybnt.dll : No!"
$NULL=WRITELINE(2,$Werkstation+",No!"+CHR(13)+CHR(10))
ENDIF
$Werkstation=READLINE(1)
LOOP
GOTO End

:End
$NULL=CLOSE(1)
$NULL=CLOSE(2)
EXIT


Succes..!! (good luck)

------------------
To Be Of Service..,
Fabian.
-----------------Paranoia is reality on a finer scale-----------------

[This message has been edited by Fabian (edited 15 February 2001).]