Page 1 of 1 1
Topic Options
#27388 - 2002-08-19 09:31 PM Can't get this to work!
Jeep4JB Offline
Lurker

Registered: 2002-08-19
Posts: 3
I'm trying to get Kixtart working in a mixed 9x/NT environment and not having much luck. I wasn't planning to use the RPC service at this point so I've just loaded kix32.exe, kx16.dll, and kx32.dll in the netlogon share of the DCs. I've created a batch file that is specified as the login script which starts the Kixtart script. Each time it runs though I get an error: "Script error: failed to find/open script!". I can't get this resolved for the life of me. Any help would be greatly appreciated! Thanks
Top
#27389 - 2002-08-19 09:32 PM Re: Can't get this to work!
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Jeep4JB,

Can you show your batch file and how you are calling the file(s)?

Thanks!

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#27390 - 2002-08-19 09:39 PM Re: Can't get this to work!
Jeep4JB Offline
Lurker

Registered: 2002-08-19
Posts: 3
Here's the bat file (logonkix.bat):

@ECHO OFF

%0\..\kix32 logonkix

PAUSE

EXIT

And here's the kixtart script (logonkix.kix)

; Map network drives
USE f: "\\server1\users"
USE g: "\\server2\@userid"
USE h: "\\server3\shared"

Let me know if you need further info. Thanks!

Top
#27391 - 2002-08-19 09:41 PM Re: Can't get this to work!
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Try this:
code:
@ECHO OFF

%0\..\kix32 %0\..\logonkix.kix

PAUSE

EXIT

However, this will not work under Windows XP.

[ 19. August 2002, 21:42: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#27392 - 2002-08-19 09:42 PM Re: Can't get this to work!
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
::@Echo OFF

:: LAST EDITED; kld 07.01.02 @10:38PM pst
:: Trimmed down to use less stuff..
:: - From: http://support.microsoft.com/default.aspx?scid=kb;en-us;Q318689

@ECHO off
::SETLOCAL

VER | find "NT" > nul
IF not errorlevel 1 GOTO Win_NT

VER | find "2000" > nul
IF not errorlevel 1 GOTO Win_NT

VER | find "XP" > nul
IF not errorlevel 1 GOTO Win_NT

VER | find "98" > nul
IF not errorlevel 1 GOTO Win_9X

VER | find "95" > nul
IF not errorlevel 1 GOTO Win_9X

GOTO unknown_os

:win_NT
ECHO HELLO %USERNAME%!
Echo Welcome to %USERDOMAIN%, Inc. NT Domain Environment
if not exist %windir%\kix410.ok %LOGONSERVER%\NETLOGON\kix410update.exe /q
call %windir%\kix32.exe %LOGONSERVER%\NETLOGON\Kixtest.kix
:: -- call is reserved for calling another batch file
::%windir%\kix32.exe %LOGONSERVER%\NETLOGON\Kixtest.kix
goto end

:win_9X
:: --- CHECK FOR FILES TO SET THE USER NAME
IF NOT EXIST %WINDIR%\PUTINENV.EXE XCOPY \\EOS\NETLOGON\Programs\Win9x\PUTINENV.EXE %WINDIR%
IF NOT EXIST %WINDIR%\WINSET.EXE XCOPY \\EOS\NETLOGON\Programs\Win9x\WINSET.EXE %WINDIR%

:: --- SET THE Environment Variables
:: -- Execute the script
::%WINDIR%\SYSTEM\KIX32.EXE %WINDIR%\SYSTEM\W95ENV.KIX

%WINDIR%\PUTINENV.EXE L
%WINDIR%\winset computername=%COMPUTERNAME%
%WINDIR%\winset username=%USERNAME%
%WINDIR%\winset LANGROUP=%LANGROUP%
%WINDIR%\winset LOGONSERVER=%LOGONSERVER%

:: --- DISPLAY THE USER NAME/DOMAIN
ECHO HELLO %USERNAME%!
ECHO Welcome to %LANGROUP%, Inc. Windows 9x Domain Environment

:: **********************************************************************************************
:: ******************************REMOVE FILES NOT NEEDED*****************************************
:: **********************************************************************************************
if not exist %windir%\kix410.ok %0\..\kix410update.exe /q
::%0\..\kix.exe %0\..\kix32.exe %0\..\kix95.kix
%0\..\kix32.exe %0\..\kix95.kix
goto end

:unknown_os
:end
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#27393 - 2002-08-19 09:56 PM Re: Can't get this to work!
Jeep4JB Offline
Lurker

Registered: 2002-08-19
Posts: 3
Thank you much for the very quick replies! I added the %0\..\ before the logonkix in the bat file and now it runs. I figured I had missed something simple and sure enough. Thanks again!
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.055 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