Hi

I use the same script for all the computers (winxp / win98 / win95. I am not running on a domain, but have a win xp mashine as server.
On the machines with win xp I have used the profil in Computer management to run scripts, which is working fine, but on win98 I have created a bat file - dropped a shortcut into start:
@ECHO OFF
%0\..\kix32.exe script

which is located at c:\netlogon where alle the files are.
When I log in I can see it runs the script but it does not map any drives, if I then run the bat file again, the drives are mapped?

Script:
IF @WUserID="SIMON" or @WUserID="SS"
SET "BRUGER=SIMON"
use f: "\\server-fil\home\simon"
use t: "\\server-fil\mailing"
use z: "\\server-fil\sys"
use lpt1: "\\server-fil\hp8100"
ENDIF
IF @WUserID="KENNETH" or @WUserID="KL"
SET "BRUGER=KL"
use f: "\\server-fil\home\kl"
use t: "\\server-fil\mailing"
use z: "\\server-fil\sys"
use lpt1: "\\server-fil\hp8100"
ENDIF
IF @WUserID="MOGENS" or @WUserID="MK"
SET "BRUGER=MOGENS"
use f: "\\server-fil\home\mogens"
use t: "\\server-fil\mailing"
use z: "\\server-fil\sys"
use lpt1: "\\server-fil\hp8100"
ENDIF
IF @WUserID="LOTTE" or @WUserID="LB"
SET "BRUGER=LOTTE"
use f: "\\server-fil\home\lotte"
use t: "\\server-fil\mailing"
use z: "\\server-fil\sys"
use lpt1: "\\server-fil\hp8100"
ENDIF
IF @WUserID="JOAN" or @WUserID="JW"
SET "BRUGER=JOAN"
use f: "\\server-fil\home\joan"
use t: "\\server-fil\mailing"
use z: "\\server-fil\sys"
use lpt1: "\\server-fil\hp8100"
ENDIF
IF @WUserID="LØN" @WUserID="LON"
SET "BRUGER=LON"
use t: "\\server-fil\mailing"
use z: "\\server-fil\sys"
use lpt1: "\\server-fil\hp8100"
ENDIF
IF @WUserID="KUV"
SET "BRUGER=KUV"
use t: "\\server-fil\mailing"
use z: "\\server-fil\sys"
ENDIF
IF @WUserID="ADMIN"
SET "BRUGER=KL"
use f: "\\server-fil\home"
use t: "\\server-fil\mailing"
use z: "\\server-fil\sys"
use lpt1: "\\server-fil\hp8100"
ENDIF

What is wrong?

regards
Kenneth