#19659 - 2002-04-10 04:02 AM
Please help a beginner
|
AnalogKid2112
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
|
|
|
|
#19661 - 2002-04-10 04:19 AM
Re: Please help a beginner
|
AnalogKid2112
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
|
|
|
|
#19664 - 2002-04-10 04:34 AM
Re: Please help a beginner
|
AnalogKid2112
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
|
|
|
|
#19666 - 2002-04-10 05:01 AM
Re: Please help a beginner
|
AnalogKid2112
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
|
|
|
|
#19668 - 2002-04-10 11:49 PM
Re: Please help a beginner
|
AnalogKid2112
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
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
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 447 anonymous users online.
|
|
|