Page 1 of 1 1
Topic Options
#19659 - 2002-04-10 04:02 AM Please help a beginner
AnalogKid2112 Offline
Fresh Scripter

Registered: 2002-04-09
Posts: 11
Loc: Hamilton Ontario, Canada
Hello everyone.

I'm new to KIX programming, a friend of mine recommended I try it for what I need, but I cannot get a hold of him (he left for vacation) and I have no idea what to do!
I sort of understand the programming end of scripting, just need a little more time to understand the use of variables, etc. But what I'm having problems with is running the scripts. I'm not really sure what to do - where files go, etc.

I'm running Windows 2000 Advanced Server as my server with Active Directory, DNS, and Roaming User Profiles installed. ALL of my client machines are Windows 95.

Can someone PLEASE help me get started here!
I've downloaded KIXtart and unzipped all of the files to my servers NETLOGON directory, but I'm not 100% sure if that is where they are supposed to be. I've also been playing with executing the scripts, but I'm not to sure how to do this. I've been reading the help file and it says to use the LOGIN SCRIPT feature in Active Directory, or to use a batch file on the client machines if running Win9x. I'm MUCH rather execute these scripts server side.

Again, if anyone could please help a beginner get started, I would REALLY appriciate all the help I can get!

Cheers!
_________________________
Is that going to be on the test?

Top
#19660 - 2002-04-10 04:13 AM Re: Please help a beginner
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Welcome another ON.CA to the board. Could you fill us in just a tad bit more on your sucesses and failures.
I'm not sure what you mean by "server side". Logon scripts always run "client side". For the Wintendos (Win9x/ME), I suggest you copy all the binaries (kix32.exe, wkix32.exe, *.dll) to the client's %windir%. You also need to copy the KXRPC to the server's System32 folder and then install it as a service.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#19661 - 2002-04-10 04:19 AM Re: Please help a beginner
AnalogKid2112 Offline
Fresh Scripter

Registered: 2002-04-09
Posts: 11
Loc: Hamilton Ontario, Canada
what I meant by server side was have all the binaries and scripts on the server, then the client machine runs the scripts right off the server machine. I've kinda got it working! But I'm not sure. I have all my users setup in Active Directory. There is an option in Active Directory to run a script, so I typed Kix32 in that feild. When I use one of the client machines to log in, I see the KIX console and stuff like "running script from WinNT server" (or close to that, but you get the idea). But the actual scripts don't run.

Better yet, could someone just tell me what to do and how - this is getting very frusterating, but I'm NOT giving up!
_________________________
Is that going to be on the test?

Top
#19662 - 2002-04-10 04:28 AM Re: Please help a beginner
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Your script files are not associated to run with KiX32.exe like .VBS files are with WSH.

So, you need to run using a batch file. Something like this.

LOGON.BAT

%0\..\KIX32.EXE LOGON.KIX
or possibly something like this for XP
KIX32 LOGON.KIX

Please let us know if this is not enough information and I'm sure we can provide you with more details.

Top
#19663 - 2002-04-10 04:32 AM Re: Please help a beginner
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
While some get away with keeping the binaries just on the sever, I find Win95 to be much more stable if you copy them local. The scripts can stay on the server.

For Wintendo, you have to launch KiX through a logon.bat file. It's documented in the manual. There are a lot of examples of logon.bat files on the board.
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%

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


:KIX_NT
%0\..\KIX32.EXE %0\..\logon1.SCR
Call %0\..\smsls.bat
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
#19664 - 2002-04-10 04:34 AM Re: Please help a beginner
AnalogKid2112 Offline
Fresh Scripter

Registered: 2002-04-09
Posts: 11
Loc: Hamilton Ontario, Canada
Ok, I'm with ya so far...

so you want me to take those KIX files out of my NETLOGON folder which is on my server, and put those files on EACH client machine, then write a batch file... correct?

And, once I've written the batch file, how do I run it or where do I run it from? In autoexec.bat?
(hypothetically, if I had autoexec.bat AND logon.bat on the root directory (C:\), would I just write logon (refering to logon.bat) inside my autoexec.bat file(s)??)
_________________________
Is that going to be on the test?

Top
#19665 - 2002-04-10 04:38 AM Re: Please help a beginner
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Leave the original binaries in NetLogon for the real computers. As for the logon.bat, it too goes in NetLogon, and it gets addded to the users' profiles instead of kix32. The batch file will take care of copying the binaries.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#19666 - 2002-04-10 05:01 AM Re: Please help a beginner
AnalogKid2112 Offline
Fresh Scripter

Registered: 2002-04-09
Posts: 11
Loc: Hamilton Ontario, Canada
ok, so I've made the login.bat file and wrote the code to copy everything to the local machine if the binaries are not already there. Now what?
And what's this? (I'm not really familiar with DOS variables).

:KIX_LOCAL
%windir%\KIX32.EXE %0\..\LOGON.KIX
Call %0\..\smsls.bat
GOTO END:
KIX_NT
%0\..\KIX32.EXE %0\..\logon1.SCR
Call %0\..\smsls.bat
GOTO END:
END

Would I be correct to assume that LOGON.KIX and logon1.scr are my actual scripts?!?!
_________________________
Is that going to be on the test?

Top
#19667 - 2002-04-10 05:15 AM Re: Please help a beginner
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Hey Kid, hows things in SteelTown ? Yeah, logon.kix and and login1.scr are your actual kixtart scripts.

I always like to create a small test script just to check things out and pause the screen so that one can actually see things work, might want to start with this small .kix script:

file: login.kix

break on

?"Hello from kixtart! Press enter to continue..." gets $s

exit 1



-Shawn

Top
#19668 - 2002-04-10 11:49 PM Re: Please help a beginner
AnalogKid2112 Offline
Fresh Scripter

Registered: 2002-04-09
Posts: 11
Loc: Hamilton Ontario, Canada
Everything is working as it should be (minus
security features which I still have to setup)!!

Thanks for the help guys!
_________________________
Is that going to be on the test?

Top
#19669 - 2002-04-15 09:51 PM Re: Please help a beginner
Anonymous
Unregistered


Copying the KIX files from the NETLOGON directory works fine, however I would use some switches for when you upgrade the script to overwite the version residing on the client PC with the new one. The echo command is necessary for NT (it doesn't recognize the /Y switch)

code:
 @ECHO OFF
if "%OS%" == "Windows_NT" GOTO WinNT

REM ----------------------------------------------------------------
REM system is Win95/98
REM Copy Kix Files to PC, Update DCMETRO Script if Newer
REM ----------------------------------------------------------------
XCOPY %0\..\KIX32.EXE C:\ /D /H /I /R /Y > NUL
XCOPY %0\..\KX16.DLL C:\WINDOWS /D /H /I /R /Y > NUL
XCOPY %0\..\KX32.DLL C:\WINDOWS /D /H /I /R /Y > NUL
XCOPY %0\..\KX95.DLL C:\WINDOWS /D /H /I /R /Y > NUL
XCOPY %0\..\DCMETRO.KIX C:\ /D /H /I /R /Y > NUL

GOTO RUN

:WinNT
REM ----------------------------------------------------------------
REM Copy Kix Files to PC, Update DCMETRO Script if Newer
REM ---------------------------------------------------------------
ECHO Y|XCOPY %0\..\KIX32.EXE C: /D /H /I /R > NUL
ECHO Y|XCOPY %0\..\DCMETRO.KIX C: /D /H /I /R > NUL

GOTO RUN

:RUN

ECHO Mapping Network Drives, Please Wait...........

C:\kix32.exe DCMETRO.kix


Top
#19670 - 2002-04-15 10:58 PM Re: Please help a beginner
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
mahjohn,

In my opinion I think you should really think twice about copying your working SCRIPT to the local system. This is VERY hard to maintain and keep accurate. Copying the KiXtart working files locally is okay, but not the actual script.

Example:
You copy it locally to 5,000 workstations. Then something major comes up where you need to modify the script to change something on the local system again. Now you have to VERIFY that the local copy is the newest version. Simply using XCOPY is no guarantee the client will update. Many, many things can go wrong to prevent the client from getting an updated version of the script. If you only run one copy of the script from the NETLOGON folder, then all the clients will run the same version guaranteed.

%windir% is a better method call then C:\WINDOWS

ps.. As an FYI, if for some reason your local copy of KiXtart is missing one of the .DLL files on a Windows 9x system, you could also have script failures. You should verify in your batch file that these files do in fact exist before calling KIX32.EXE

In a perfect world, a simple batch file to copy the files to the local system would be fine, but in the real world too many things happen that can and will cause problems on at least a small percentage of the systems.

Using a more robust batch file or an installer such as the one from MCA would be recommended.

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 447 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.142 seconds in which 0.104 seconds were spent on a total of 13 queries. Zlib compression enabled.

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