I have try it with %comspec% /c but that doesn't work.
Below a part op the script:
code:

SHELL "%comspec% /c c:\tools\rcmd.exe \\taa-fs1"

If Open(1, "c:\klassen.txt") = 0
WHILE @ERROR = 0
$x = ReadLine(1)
SHELL "%comspec% /c net user $klas$counter /domain 2>nul | find /c "succes"| choice /c:01 /n > nul"
IF @error=1
? "User not found"
else
? "user found"
LOOP
$null=Close(1)
ELSE
SELECT


[ 13 August 2001: Message edited by: awinkel ]