Dear,

With the clear and fast solution there is only a problem when
workstattion names are f.e. server01 & server011.
To solve this we suggest following code
code:
 $srvlist="-server01-server011-server02-server022-"
IF (Instr($srvlist,"-"+@wksta+"-") <> 0)
GOTO next
ELSE
GOSUB addmaps
GOSUB schtask
ENDIF
:next

Above code works for kixtart 3.x and 4.x releases.
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