Page 3 of 3 <123
Topic Options
#98687 - 2003-02-24 04:13 PM Re: Please Help
DJ Ballistic Offline
Starting to like KiXtart

Registered: 2003-02-21
Posts: 185
I will try that sample code for the possible Windows 98 solution. But for Windows XP and 2000 wouldn't they respond the same to the one that I already have? They are both NT based OS's and the registry entry keys are the same.
Top
#98688 - 2003-02-24 04:27 PM Re: Please Help
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Yes, I believe 2000 & XP would respond like NT but I not sure I understand your question. Is this question in relation to jens logon script? Or maybe a better question is why do think this might be an issue here?

Another point, I am not sure NTDOC's computer info function will work fully with Win9x clients. Have you manually executed it from a Win9x client?

Also, the script I posted above is not complete for Win9x clients. I forgot about copying the DLLs that Win9x needs. I will change it.

[ 24. February 2003, 16:34: Message edited by: Jack Lothian ]
_________________________
Jack

Top
#98689 - 2003-02-24 05:28 PM Re: Please Help
DJ Ballistic Offline
Starting to like KiXtart

Registered: 2003-02-21
Posts: 185
I followed the link for that logon.bat for 9X clients. It works fine if I REM out this SET KIXVER=KIXTART.412 line that always fails. It is looing for a file by that name and it doesn't exist. I haven't gotten the chance to execute it on a 9x client yet. I will be very shortly.
Also for that desktop shortcut creation, I noticed some people stating that they didn't like the idea of actually copying the kix32.exe to the client so I modified the shortcut to point to it in that client shortcut directory so if I update the version it gets updated only one place and I won't have to worry about several copies of kix32.exe everywhere. I did that like this:
code:
 
;MD c:\Kixscripts
;If NOT Exist('c:\Kixscripts\kix32.exe')
;Copy '\\sussex1\netlogon\Client Shortcut\kix32.exe' 'c:\Kixscripts'
;EndIf
;If NOT Exist('c:\Kixscripts\My Computer Info.kix')
;Copy '\\sussex1\netlogon\Client Shortcut\My Computer Information.kix' 'c:\Kixscripts'
;EndIf
$desktop = ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Desktop")
If NOT Exist('$desktop\My Computer Information.lnk')
Copy '\\sussex1\netlogon\Client Shortcut\My Computer Information.lnk' '$desktop'
EndIf

Of course I also edited the shortcuts to the sussex1 server so it wouldn't try to look locally. So in essence I left the kix32.exe and the my computer information.kix scripts in the netlogon folder so there is only 1 copy.

[ 24. February 2003, 17:43: Message edited by: DJ Ballistic ]

Top
#98690 - 2003-02-24 06:04 PM Re: Please Help
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
The KIXTART.412 file is a required file. It is used to check whether a user can copy files to the %WINDIR% directory and whether that directory contains the up-to-date version of KiXtart. It is later on used to determine whether to run the executably locally or remotely.
_________________________
There are two types of vessels, submarines and targets.

Top
#98691 - 2003-02-24 06:12 PM Re: Please Help
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
I prefer using 1 common version of kixtart in the netlogon but there are some costs. It tends to slow down execution. If any of your clients have a slow link to the logon server this could become an important issue.

In Jens' script, I think he created that file on the server & he uses it & the naming convention as a semi-automated way of keeping the local version of kixtart current.

As a side point - often you will find your particular problem is simular to other problems that have been discussed yet not exactly the same. Often a few modifications to the posted code is all you need to get it going. It was my thought that you should use what Jens did as a template. Read it & understand it fully & then modify it to suit your needs.
_________________________
Jack

Top
#98692 - 2003-02-24 08:19 PM Re: Please Help
DJ Ballistic Offline
Starting to like KiXtart

Registered: 2003-02-21
Posts: 185
That kixtart.412 file I don't know where to get.
I have looked through Jen's script and it seems simple enough. I have tested it on the 2K/XP boxes and it works fine if I REM out that .412 line about the set kixver.

Where can I get that .412 file to test that script fully?

Top
#98693 - 2003-02-24 08:21 PM Re: Please Help
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
It's just an empty file. Create a text file named KIXTART.412 and that's it. The new version of this login.bat file will no longer require this file, however, I still need to do some more testing.

[ 24. February 2003, 20:36: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#98694 - 2003-02-24 08:37 PM Re: Please Help
DJ Ballistic Offline
Starting to like KiXtart

Registered: 2003-02-21
Posts: 185
Hmm i created the empty text file kixtart.420 and it still says file not found and it is in the same directory as the logon.bat file.

Any thoughts?

Top
#98695 - 2003-02-24 09:10 PM Re: Please Help
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Jens uses the existence of the version file to test whether or not the local version of kix is current or not. If you want to use this feature put a empty file called KIXTART.420 (if that is the version you are using) in the netlogon share but not on the local machine. Then change all references in the script from KIXTART.412 to KIXTART.420. Then put the kix32.exe (version 4.20) in the netlogon plus put the 3 DDls there as well. Then it should run as planned.

Additionally you could dumb down the script something like this if you wish:

code:
ECHO OFF
CLS
REM detect the operating system and go to the appropriate segment
VER | find "NT" > nul
IF not errorlevel 1 GOTO Win_NT
VER | find "2000" > nul
IF not errorlevel 1 GOTO Win_2K
VER | find "XP" > nul
IF not errorlevel 1 GOTO Win_XP
VER | find "98" > nul
IF not errorlevel 1 GOTO Win_98
VER | find "95" > nul
IF not errorlevel 1 GOTO Win_95
VER | find "Millennium" > nul
IF not errorlevel 1 GOTO WIN_ME
GOTO DOS
REM client is running DOS
:DOS
ECHO.
ECHO No Login Script Available For DOS Clients
ECHO.
GOTO End
REM client is running Windows 9x
:Win_95
:Win_98
:Win_ME
%WINDIR%\COMMAND\XCOPY %0\..\KIX32.EXE %WINDIR%\ /D /H /I /R /V /C >NUL
%WINDIR%\COMMAND\XCOPY %0\..\KX*.DLL %WINDIR%\ /D /H /I /R /V /C >NUL
GOTO RunScript
REM client is running Windows NT/2000/XP
:Win_NT
:Win_2K
:Win_XP
ECHO y| XCOPY \\sussex1\\NETLOGON\KIX32.EXE %WINDIR%\ /D /H /I /R /V /C >NUL >NUL >NUL

GOTO RunScript
:RunScript
%WINDIR%\KIX32.EXE \\sussex1\\NETLOGON\LOGIN.KIX

GOTO End
:End

CLS
EXIT 0

_________________________
Jack

Top
#98696 - 2003-02-24 09:13 PM Re: Please Help
DJ Ballistic Offline
Starting to like KiXtart

Registered: 2003-02-21
Posts: 185
I guess I'll have to use the dumbed down version you posted. I have placed the 3 dll's in the netlogon directory and it still says it cannot find my kixtart.420 file even though it is there. There is only 1 reference to it in the code.
Top
#98697 - 2003-02-24 09:23 PM Re: Please Help
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Where does it not find the file? Remember that you need administrative privileges to copy to %WINDIR% under Windows NT/2000/XP.
_________________________
There are two types of vessels, submarines and targets.

Top
#98698 - 2003-02-24 09:31 PM Re: Please Help
DJ Ballistic Offline
Starting to like KiXtart

Registered: 2003-02-21
Posts: 185
I am the domain administrator and have the permissions. It just says cannot find file kixtart.420 and the logon.bat fails.
Top
#98699 - 2003-02-24 09:34 PM Re: Please Help
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
DJ,

Why did you move this thread?
http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=2;t=004204#000002

Please slow down and take the time to read and re-read the answers that people are giving you.

The flag file is only for installing the KIX files locally. If you're not doing that, then remove that line.

Isn't there anyone else there in your Company that might be able to lend you a hand with the batch file portion? Batch files have been around for a LONG time and this is a very simple one compared to what some batch files can do.

Top
#98700 - 2003-02-24 09:34 PM Re: Please Help
DJ Ballistic Offline
Starting to like KiXtart

Registered: 2003-02-21
Posts: 185
However the normal users that run Windows 2000 and XP aren't going to ever have Administrator privilages so maybe the dumbed down code is the better way to go anyway.
Top
#98701 - 2003-02-24 10:34 PM Re: Please Help
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
NTDOC,

DJ was following Les' suggestion when he moved his question to the scripts forum. Unfortunately, Jens & I didn't follow Les' good advice & we responded here. Also, the code that you posted for DJ uses COM. I don't think DJ was tracking this enhancement.

DJ,

If that portion of the script is not running for an administrator than it is not a permission problem. (I think) I suspect there is another problem with your script. If you wish to resolve this try starting a new thread in the starters forum giving your kix script, your batch script & when it is not working & on what clients. Of course, if the dumbed down version works & you are happy with that then you don't need to resolve the error in the full script.

[ 24. February 2003, 22:41: Message edited by: Jack Lothian ]
_________________________
Jack

Top
Page 3 of 3 <123


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 202 anonymous users online.
Newest Members
BeeEm, min_seow, Audio, Hoschi, Comet
17882 Registered Users

Generated in 0.059 seconds in which 0.02 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