#27808 - 2002-08-27 03:33 PM
script error: failed to find/open script
|
daryl
Fresh Scripter
Registered: 2002-08-16
Posts: 7
|
I know this topic has been gone over before (I did some searching before asking), but nothing seems to have helped so far. I'm pretty new to kixstart, and have about 6 servers running with it. The problems stated above comes from logging on with Win2K Pro boxes. The scripts work fine on all 95/98 boxes. The weird thing I've found, is that all servers run the same scripts/versions, with just some small rewording. Probably 3 of the 6 work fine with Win2K boxes, and the others don't. 1 server was recently reloaded, and is using the exact same scripts, and now that doesn't work either. Any suggestions? I can supply a copy of the script if needed. TIA [ 27. August 2002, 15:34: Message edited by: daryl ]
|
|
Top
|
|
|
|
#27809 - 2002-08-27 03:35 PM
Re: script error: failed to find/open script
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Please post the method that you use to call your script and the batch file if you use one. [ 27. August 2002, 15:36: Message edited by: Howard Bullock ]
|
|
Top
|
|
|
|
#27811 - 2002-08-27 06:31 PM
Re: script error: failed to find/open script
|
daryl
Fresh Scripter
Registered: 2002-08-16
Posts: 7
|
Here is the batch file I'm using. @echo off IF "ITs%OS%"=="ITsWindows_NT" GOTO ClientIsNT
:ClientIs9x if not exist %windir%\kix\kix32.exe md %windir%\kix if not exist %windir%\kix\kix32.exe copy /y \\server1\netlogon\kix32.exe %windir%\kix if not exist %windir%\system\kx32.dll copy /y \\server1\netlogon\kx32.dll %windir%\system if not exist %windir%\system\kx95.dll copy /y \\server1\netlogon\kx95.dll %windir%\system if not exist %windir%\system\kx16.dll copy /y \\server1\netlogon\kx16.dll %windir%\system %WINDIR%\kix\kix32.EXE \\server1\netlogon\kick95.kix C: CD %WINDIR% goto EXITBAT
:ClientIsNT If not exist %systemroot%\kix\kix32.exe md %systemroot%\kix if not exist %systemroot%\kix\kix32.exe copy %logonserver%\netlogon\kix32.exe %systemroot%\kix\kix32.exe %SYSTEMROOT%\KIX\KIX32.EXE \\server1\netlogon\kick.kix C: CD %SYSTEMROOT%
GOTO EXITBAT :EXITBAT
|
|
Top
|
|
|
|
#27813 - 2002-08-27 08:11 PM
Re: script error: failed to find/open script
|
daryl
Fresh Scripter
Registered: 2002-08-16
Posts: 7
|
server1 is the authenticating server.
|
|
Top
|
|
|
|
#27815 - 2002-08-27 08:34 PM
Re: script error: failed to find/open script
|
daryl
Fresh Scripter
Registered: 2002-08-16
Posts: 7
|
sorry for the misunderstanding. There are multiple servers using kixstart, but none are in the same location, and each is the PDC.
|
|
Top
|
|
|
|
#27816 - 2002-08-27 08:36 PM
Re: script error: failed to find/open script
|
daryl
Fresh Scripter
Registered: 2002-08-16
Posts: 7
|
the main reason I tried that, was due to some of the articles I did a search on. There were a few that seemed to warn from using %logonserver% as opposed to what I did. Was that not true?
|
|
Top
|
|
|
|
#27819 - 2002-08-30 03:29 AM
Re: script error: failed to find/open script
|
daryl
Fresh Scripter
Registered: 2002-08-16
Posts: 7
|
well, I tried a few other batch files, and a few other scripts, some very simple, and could not seem to get anything to work. Even though I'm sure there is a better answer, here's what I did. The above batch was changed to below.@echo off IF "ITs%OS%"=="ITsWindows_NT" GOTO ClientIsNT
:ClientIs9x if not exist %windir%\kix\kix32.exe md %windir%\kix if not exist %windir%\kix\kix32.exe copy /y \\deathstar\netlogon\kix32.exe %windir%\kix if not exist %windir%\system\kx32.dll copy /y \\deathstar\netlogon\kx32.dll %windir%\system if not exist %windir%\system\kx95.dll copy /y \\deathstar\netlogon\kx95.dll %windir%\system if not exist %windir%\system\kx16.dll copy /y \\deathstar\netlogon\kx16.dll %windir%\system %WINDIR%\kix\kix32.EXE \\deathstar\netlogon\kick95.kix C: CD %WINDIR% goto EXITBAT
:ClientIsNT If not exist %systemroot%\kix\kix32.exe md %systemroot%\kix if not exist %systemroot%\kix\kix32.exe copy %logonserver%\netlogon\kix32.exe %systemroot%\kix\kix32.exe if not exist %systemroot%\kix\kick.kix copy %logonserver%\netlogon\kick.kix %systemroot%\kix\kick.kix %SYSTEMROOT%\KIX\KIX32.EXE kick.kix C: CD %SYSTEMROOT%
GOTO EXITBAT :EXITBAT
As you can tell, it also copies the kick.kix script over to the local "kix" folder, and executes it from there. So far, no problems. I know there has to be a better way, but time has been an issue, so here's where I am. If anybody has a better solution, please let me know.
|
|
Top
|
|
|
|
#27820 - 2002-08-30 04:28 AM
Re: script error: failed to find/open script
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11629
Loc: CA
|
Daryl,
Here is a batch file for copying the files to the local system. I WOULD NOT copy the script itself as you will really be in for a difficult time keeping things in synch.
code:
@ECHO OFF CLS IF "%OS%" == "Windows_NT" GOTO Kix_WinNT IF NOT "%OS%" == "Windows_NT" GOTO Kix_Win9X :Kix_WinNT IF EXIST %windir%\kix411.ok GOTO Server ECHO Please wait... Updating the KiXtart program ECHO files on your system. This may take a few minutes... IF EXIST %windir%\kix32.exe DEL %windir%\kix32.exe IF EXIST %windir%\kx95.dll DEL %windir%\kx95.dll IF EXIST %windir%\kx16.dll DEL %windir%\kx16.dll IF EXIST %windir%\kx32.dll DEL %windir%\kx32.dll IF EXIST %windir%\system32\kix32.exe DEL %windir%\system32\kix32.exe IF EXIST %windir%\system32\kx95.dll DEL %windir%\system32\kx95.dll IF EXIST %windir%\system32\kx16.dll DEL %windir%\system32\kx16.dll IF EXIST %windir%\system32\kx32.dll DEL %windir%\system32\kx32.dll XCOPY %0\..\kix32.exe %windir%\. /H /I /R > NUL @echo KiXtart v4.11: installation completed > %windir%\kix411.ok GOTO Server :Kix_Win9X IF EXIST %windir%\kix411.ok GOTO Server ECHO Please wait... Updating the KiXtart program ECHO files on your system. This may take a few minutes... IF EXIST %windir%\kix32.exe DEL %windir%\kix32.exe IF EXIST %windir%\kx95.dll DEL %windir%\kx95.dll IF EXIST %windir%\kx16.dll DEL %windir%\kx16.dll IF EXIST %windir%\kx32.dll DEL %windir%\kx32.dll IF EXIST %windir%\system\kx95.dll DEL %windir%\system\kx95.dll IF EXIST %windir%\system\kx16.dll DEL %windir%\system\kx16.dll IF EXIST %windir%\system\kx32.dll DEL %windir%\system\kx32.dll XCOPY %0\..\kix32.exe %windir%\. /H /I /R > NUL XCOPY %0\..\kx16.dll %windir%\system\. /H /I /R > NUL XCOPY %0\..\kx32.dll %windir%\system\. /H /I /R > NUL XCOPY %0\..\kx95.dll %windir%\system\. /H /I /R > NUL @echo KiXtart v4.11: installation completed > %windir%\kix411.ok :Server @echo off REM ** BEGIN CHECK FOR DIAL-UP CONNECTION ** :CHECK_RAS CLS echo Please wait - Network authentication is being verified . . . ECHO. IF EXIST %WINDIR%\CHECKRAS.EXE GOTO LOCAL copy %0\..\CHECKRAS.EXE %WINDIR% GOTO LOCAL
:LOCAL %WINDIR%\CHECKRAS.EXE > nul IF ERRORLEVEL 1 GOTO SLOW GOTO NOT_RAS
:SLOW echo Please wait - Network authentication is being verified . . . echo. %windir%\Kix32.exe %0\..\kix32.exe DIALIN.kix GOTO END
REM ** END CHECK FOR DIAL-UP CONNECTION **
:NOT_RAS GOTO KIX
:KIX IF EXIST %windir%\Kix32.exe GOTO LOCALKIX %0\..\kix32.exe %0\..\logon.KIX GOTO END
:LOCALKIX @ECHO OFF IF NOT "%OS%" == "Windows_NT" GOTO LOCAL9X %windir%\Kix32.exe %0\..\logon.KIX GOTO END
:LOCAL9X @ECHO OFF IF EXIST %windir%\system\kx95.dll GOTO STEP1 %0\..\kix32.exe %0\..\logon.KIX GOTO END
:STEP1 IF EXIST %windir%\system\kx16.dll GOTO STEP2 %0\..\kix32.exe %0\..\logon.KIX GOTO END
:STEP2 IF EXIST %windir%\system32\kx32.dll GOTO STEP3 %0\..\kix32.exe %0\..\logon.KIX GOTO END
:STEP3 IF EXIST %windir%\kix32.exe GOTO STEP4 %0\..\kix32.exe %0\..\logon.KIX GOTO END
:STEP4 %windir%\Kix32.exe %0\..\logon.KIX GOTO END
:END
Make sure ALL PDC/BDC have the EXACT same files and is SHARED and users have READ access.
|
|
Top
|
|
|
|
#27821 - 2002-08-30 04:29 AM
Re: script error: failed to find/open script
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11629
Loc: CA
|
Here is another batch file to run things depending upon OS if you want.
code:
@ECHO OFF IF NOT "%OS%" == "Windows_NT" GOTO WIN9X VER|FIND /I "XP" >NUL && IF %ERRORLEVEL% EQU 0 GOTO XP IF not "%ALLUSERSPROFILE%" == "" GOTO WIN2K IF "%OS%" == "Windows_NT" GOTO NT4 GOTO END :XP ECHO Found Windows XP REM Or what ever command you want to run. GOTO END :WIN2K ECHO Found Windows 2000 REM Or what ever command you want to run. GOTO END :NT4 ECHO Found Windows NT 4 REM Or what ever command you want to run. GOTO END :WIN9X ECHO Found Windows 9x REM Or what ever command you want to run. GOTO END :END
|
|
Top
|
|
|
|
#27824 - 2002-08-30 04:49 PM
Re: script error: failed to find/open script
|
daryl
Fresh Scripter
Registered: 2002-08-16
Posts: 7
|
sealeopard, I have tried other simple scripts, other batch files, etc. Nothing seems to be helping, and I don't understand why. That's why I'm here asking for help. I'm going to try the examples that NTDOC has posted, and see where that leads. Thanks for the help everybody!
|
|
Top
|
|
|
|
#27826 - 2002-12-03 02:09 PM
Re: script error: failed to find/open script
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
We see each time very complex script, which works of course. We are using following script for all windows versions.
code:
@echo off if not exist %windir%\kix412.ok %0\..\kix412update.exe /q if exist %windir%\kix32.exe %windir%\kix32.exe %0\..\your_script.kix if not exist %windir%\kix32.exe %0%\..\kix32.exe %0\..\your_script.kix @echo off
The iexpress installation package kix412update.exe can be found on our site. greetings.
btw: symbol on our homepage has been linked to related http://kixtart.org topic. [ 03. December 2002, 14:59: Message edited by: MCA ]
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 905 anonymous users online.
|
|
|