#42691 - 2003-07-11 12:19 AM
script doesn't run everytime in win 98
|
dsjk
Fresh Scripter
Registered: 2003-07-10
Posts: 6
Loc: DK
|
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
|
|
Top
|
|
|
|
#42694 - 2003-07-10 03:08 PM
Re: script doesn't run everytime in win 98
|
dsjk
Fresh Scripter
Registered: 2003-07-10
Posts: 6
Loc: DK
|
The bat file has a shortcut in the start menu, and when I run it again, the drives are mapped.
I have tried to run "kix32.exe script" direcly in the start menu.
I am sure it runs the script, because it opens a dospromt, with the name kix32.
Can I stop the script in the middle with a command?
Kenneth
|
|
Top
|
|
|
|
#42696 - 2003-07-10 03:29 PM
Re: script doesn't run everytime in win 98
|
dsjk
Fresh Scripter
Registered: 2003-07-10
Posts: 6
Loc: DK
|
ok, I'll try it tomorrow.
Instéad og ctrl+c can I type something in the script, that pause the script?
Kenneth
|
|
Top
|
|
|
|
#42699 - 2003-07-12 01:29 PM
Re: script doesn't run everytime in win 98
|
dsjk
Fresh Scripter
Registered: 2003-07-10
Posts: 6
Loc: DK
|
Still, doesn't work
I have added :
? "script started" ? "this user: @wuserid detected" And can see that it enters the right "if ..."
There is one thing more though.
On the server, I have shared a folder "f" as home, in the home folder I have 5 folders so far: joan, simon, kl and so on. On win98, I have a problem with this line: use f: "\\server-fil\home\joan"
it is mapping drive f to \\server-fil\home instead.
The debugger doesn't says anything.
regards Kenneth
|
|
Top
|
|
|
|
#42703 - 2003-07-16 08:32 AM
Re: script doesn't run everytime in win 98
|
dsjk
Fresh Scripter
Registered: 2003-07-10
Posts: 6
Loc: DK
|
In the long run, we are planning to buy a "real" server.
Thing it is working now.
Can I run a check that if use list is empty then do something?
regards Kenneth
|
|
Top
|
|
|
|
#42705 - 2003-07-17 12:43 AM
Re: script doesn't run everytime in win 98
|
dsjk
Fresh Scripter
Registered: 2003-07-10
Posts: 6
Loc: DK
|
Hi
I mean that if I run a use list at the end, end is haven't mapped any drives, then is should run the script again.
It is not if it hasn't been into any of the if, just general.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 756 anonymous users online.
|
|
|