Page 1 of 1 1
Topic Options
#13398 - 2001-10-19 11:12 PM Problem with scripts for NT and 2000
Anonymous
Unregistered


I am new to Kixtart and need some help. I have NT4 Sever, Novell Server, Win2000 Pro, NT Workstation, and Win 9x systems. My script works great on the 9x system even with the Novell client. But the NT and Win2000 says that it can't find/open script. If I manually map a drive to the Netlogon, it will run. Can this be done without having to map drive first?
Top
#13399 - 2001-10-19 11:22 PM Re: Problem with scripts for NT and 2000
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
If all works seemlessly. It would help if you posted what is located in the NT account logon script property and the code that it references.
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#13400 - 2001-10-19 11:59 PM Re: Problem with scripts for NT and 2000
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Sounds just like my network. Only difference, mine works.

Some things to look out for are protocols and provider order. Enable only TCPIP for NT and move it up in the provider order. All my PCs use the NetWare client, but in a few cases I flip the GINAs.

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#13401 - 2001-10-20 12:06 AM Re: Problem with scripts for NT and 2000
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
One more thing...
Call KiX from Logon.bat with something like this:
code:

@echo off

SET KXRPC=\\FF_ADM1;\\FFADM2

Rem Check to see if client is Win95 or WinNT
IF "%OS%"=="Windows_NT" GOTO KIX_NT

REM Copy needed files to Win95 clients
IF NOT EXIST %windir%\KIX32.EXE COPY \\FF_ADM1\update\kix\KIX32.EXE %windir%
IF NOT EXIST %windir%\KX32.DLL COPY \\FF_ADM1\update\kix\KX32.DLL %windir%
IF NOT EXIST %windir%\KX16.DLL COPY \\FF_ADM1\update\kix\KX16.DLL %windir%
IF NOT EXIST %windir%\KX95.DLL COPY \\FF_ADM1\update\kix\KX95.DLL %windir%

IF NOT EXIST %windir%\CHECKRAS.EXE COPY %0\..\CHECKRAS.EXE %windir%

Rem Check to see if client is remote dial-in
CHECKRAS > NUL
IF ERRORLEVEL 1 GOTO KIX_REMOTE

:KIX_LOCAL
%windir%\KIX32.EXE %0\..\LOGON.KIX GOTO END

:KIX_REMOTE
%windir%\KIX32.EXE %0\..\LOGON2.KIX
GOTO END

:KIX_NT
IF NOT EXIST %systemroot%\CHECKRAS.EXE COPY %0\..\CHECKRAS.EXE %systemroot%

Rem Check to see if client is remote dial-in
CHECKRAS > NUL
IF ERRORLEVEL 1 GOTO KIX_NT_REMOTE

:KIX_NT_LOCAL
%0\..\KIX32.EXE %0\..\logon.KIX
GOTO END

:KIX_NT_REMOTE
%0\..\KIX32.EXE %0\..\logon2.KIX
GOTO END

:END

EXIT


_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#13402 - 2001-10-20 12:09 AM Re: Problem with scripts for NT and 2000
Anonymous
Unregistered


I have tried the .bat file and the .scr

The .bat file is as follows:

@ECHO OFF
%0\..\kix32.exe script1.scr

The .scr is:

? "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"
SHELL "Winset.exe IPADRESSx"

Call Macro.bat

?
EXIT

Am I missing something?

Top
#13403 - 2001-10-20 05:14 AM Re: Problem with scripts for NT and 2000
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Yes. Try:

%0\..\kix32.exe %0\..\script1.scr

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#13404 - 2001-10-20 09:21 AM Re: Problem with scripts for NT and 2000
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Welcome to the board.

We see a call macro.bat in your script, which isn't possible.
You can only CALL a kixtart script.
Your message 'file can't be found' had to deal with it. A possible reason:
kixtart try to find a file with the extension .kix or .scr.
So he is looking for the files Macro.bat.KIX or Macro.bat.SCR. Exist they?

Secondly we see an incomplete shell, which can give you an error.
SHELL "Winset.exe IPADRESSx" isn't correct.
It should something like
SHELL "Winset.exe IPADRESSx="
or
SHELL "Winset.exe IPADRESSx=@ipadress0"
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

Top
#13405 - 2001-10-24 09:46 PM Re: Problem with scripts for NT and 2000
Anonymous
Unregistered


Adding the %0\..\ for the script location worked great!
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 302 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.058 seconds in which 0.023 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