Page 1 of 1 1
Topic Options
#1579 - 2000-02-03 12:08 AM Problems with Windows 95 and Kixtart
Anonymous
Unregistered


Hello All,
I have recently started using Kixtart. My login script does exactly as its supposed to during the logon process in Windows 95. However, once I have logged on, at regular intervals I get an error message that reads:

"Cannot find the file \\PDC\NETLOGON\SCRIPT1.SCR
make sure the file exists on your system and the path and filename are correct"

upon receiving this message I tried and succeded in connecting to the netlogon share to check if the script1.scr is still there.

Has anyone come accross this problem before? or more importantly can anyone help. Many thanks.

Top
#1580 - 2000-02-02 01:28 PM Re: Problems with Windows 95 and Kixtart
Anonymous
Unregistered


Hi

Post your script, thanks.

Rgds

------------------
Don Davidson
Network Engineer
http://www.insight-media.co.uk



Top
#1581 - 2000-02-02 01:38 PM Re: Problems with Windows 95 and Kixtart
Anonymous
Unregistered


:logon.bat
@echo off
%0\..\Kix32.exe script1.scr
exit

:Script1.scr
? "Setting DOS variables..."
SHELL "winset.exe USERNAME=@USERID"
SHELL "Winset.exe ADDRESS=@ADDRESS"
SHELL "Winset.exe COMPUTER=@WKSTA"
SHELL "Winset.exe DOMAIN=@DOMAIN"
SHELL "Winset.exe COMMENT=@COMMENT"
SHELL "Winset.exe FULLNAME=@FULLNAME"
SHELL "Winset.exe HOMEDIR=@HOMEDIR"
SHELL "Winset.exe HOMESHR=@HOMESHR"
SHELL "Winset.exe LSERVER=@LSERVER"
SHELL "Winset.exe PRIV=@PRIV"
? "Done."
Call groups.scr
EXIT

:Groups.scr
use u: /delete
use g: /delete
use t: /delete

use u: "\\gbcoty194c010\"+@userid


If INGROUP("marketing")
use g:"\\gbcoty194c010\marketing"
endif

If INGROUP("Domain Admins")
use t: "\\gbcoty194c010\users"
Endif

small
Color b+/n
BOX (0,0,24,79,GRID) ; 'background grid'
Color b/n
sleep 3
BOX (8,21,18,61,Å) ; 'shadow' of the box
Color g+/n
BOX (7,20,17,60,FULL)

Color w+/n
AT ( 9,25) "Userid : " ; display some text strings
AT (10,25) "Full name : "
AT (11,25) "Privilege : "
AT (12,25) "Workstation : "
AT (13,25) "Domain : "
AT (14,25) "Logon Server : "

Color y+/n
AT ( 9,40) @userid ; ...and some macro's
AT (10,40) @fullname
AT (11,40) @priv
AT (12,40) @wksta
AT (13,40) @domain
AT (14,40) @lserver


Color w/n
AT (16,25) "Press anykey to continue."
if exist( @ldrive+"\jbond.spk")
play file @ldrive+"\jbond.spk"
else
get $x
endif
exit

The logon.bat is called from the users logon profile when he/she logs in.

Furthermore, the kixtart RPC service is running on the server.

Top
#1582 - 2000-02-02 06:30 PM Re: Problems with Windows 95 and Kixtart
PaulMoxey Offline
Getting the hang of it

Registered: 1999-07-22
Posts: 90
Loc: Villawood, NSW, Australia
I'm confused.
What's this fascination everyone seems to be having with wintset at the moment?
Why use an external exe do define a variable that is not used outside the script?
if your still within kix use its own variables.

Back to the problem at hand...


  • logon.bat starts up script1.scr
  • script1.scr defines a few variables (why? I don't know.. see above) and then "calls" another script groups.scr
  • groups.scr executes, but finish's with an EXIT, not a RETURN

My thoughts are that when groups.scr finishes, kix sits there watiting to return back to script1.scr, but just doesn't get there... try adding a return to the end of groups.scr instead of exit
See http://kixtart.to/script/manual/KiXtartCommandReference.htm

Even better,


  • trash all the winset stuff (Your scripts don't reference their variables at all) unless you use them elsewhere.
  • can the idea of "calling" groups.scr and just include it within script1.scr. Your certainly not running into memory problems or pushing the boundaries of kix but doing that.

So...
Logon.bat

quote:

@echo off
%0\..\Kix32.exe %0\..\script1.scr
exit

script1.scr

quote:

use u: /delete
use g: /delete
use t: /delete

use u: "\\gbcoty194c010\"+@userid

If INGROUP("marketing")
use g:"\\gbcoty194c010\marketing"
endif

If INGROUP("Domain Admins")
use t: "\\gbcoty194c010\users"
Endif

small
Color b+/n
BOX (0,0,24,79,GRID) ; 'background grid'
Color b/n
sleep 3
BOX (8,21,18,61,Å) ; 'shadow' of the box
Color g+/n
BOX (7,20,17,60,FULL)

Color w+/n
AT ( 9,25) "Userid : " ; display some text strings
AT (10,25) "Full name : "
AT (11,25) "Privilege : "
AT (12,25) "Workstation : "
AT (13,25) "Domain : "
AT (14,25) "Logon Server : "

Color y+/n
AT ( 9,40) @userid ; ...and some macro's
AT (10,40) @fullname
AT (11,40) @priv
AT (12,40) @wksta
AT (13,40) @domain
AT (14,40) @lserver

Color w/n
AT (16,25) "Press anykey to continue."
if exist( @ldrive+"\jbond.spk")
play file @ldrive+"\jbond.spk"
else
get $x
endif
exit


Removing the winset references should cut down on exectuion tme (a little) as well without all the shelling to and fro...

------------------
Paul Moxey
POS & Senior Network Administrator
Taubmans Pty Ltd
Paul_Moxey@taubmans.com.au

_________________________
Paul Moxey POS & Senior Network Administrator BarloworldCoatings (AUST) Pty Ltd

Top
#1583 - 2000-02-03 04:28 AM Re: Problems with Windows 95 and Kixtart
Anonymous
Unregistered


Hi

Paul, good shout!

I think that a lot of new users are picking up on the winset useage from a reference on Microsoft site that gives an example similar to the above.

The example may have been fine with the version of Kixtart then, but things have changed somewhat since!

Afzalhussein:
Follow Paul's advice and you should not go wrong!
Good luck.

Rgds

------------------
Don Davidson
Network Engineer
http://www.insight-media.co.uk



Top
#1584 - 2000-02-03 05:36 AM Re: Problems with Windows 95 and Kixtart
Anonymous
Unregistered


Thanks for that Paul. I have ditched the declaring of variables. It has knocked a couple of seconds of the excution time of the logon script.

I'll monitor to see if that resolves the problem of having this irritating error message coming up at regular intervals. Once again many thanks.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 640 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.051 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org