Page 2 of 2 <12
Topic Options
#5021 - 2000-11-28 08:21 PM Re: @KIX on server and on client ?
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
ok,

do a logon, and them compare the dates on the 2 sets of kix32.exe and *.dll files.

They should be the same.

also remove the > nul, and place a pause after the xcopy command, and let us know what you get.

Bryce

Top
#5022 - 2000-11-28 08:59 PM Re: @KIX on server and on client ?
Anonymous
Unregistered


I must not be getting enough sleep lately!

It says "0 files copied".

I guess I was just assuming they were actually being copied again because at the top of the command box it would flash the xcopy command 4 times. I guess I wasn't thinking that it has to execute the command each time to verify the file dates and times.

Sorry to wast your time Bryce. But thanks again.

Pete

Top
#5023 - 2000-11-28 10:05 PM Re: @KIX on server and on client ?
Anonymous
Unregistered


I don't know if this helps, but here is what I do to compare the McAfee dat files.

;=========================================================================
;
; Make sure McAfee Virus Scan Software is installed before continuing
;
;
$RetCode = CompareFileTimes("C:\Program Files\Common Files\Network Associates\VirusScan Engine\4.0.xx\names.dat", "\\Barney\Apps\McAfee\Update\LastVersion\names.dat")
IF $RetCode = -1 OR $RetCode = -2 OR $RetCode = -3
LogEvent( 2, 1, @USERID + " has obsolete or missing virus software!", "\\Barney" )
MessageBox( "Your virus scanning software is out of date or has not been properly installed. You will not be allowed to log on to the network until you contact System Support for assistance. YOUR NETWORK DRIVES WERE NOT MAPPED!", "WARNING", 0)
GOTO Done
ENDIF

Basically this compares the local and network version of a file, and produces an error if the file times don't match. Presumably you could replace the error message with a copy and a message that says something like "Kix has been updated...please reboot" or whatever. The neat thing about this is you could use it to actually go BACK a release if that ever becomes necessary.

Does this help?

Top
#5024 - 2000-11-28 10:39 PM Re: @KIX on server and on client ?
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Pete,

wasn't a waste of time, anytime that you learn something is never a waste of time!!

Glad i could help.

Bryce

Top
#5025 - 2000-11-28 10:58 PM Re: @KIX on server and on client ?
Anonymous
Unregistered


Bryce,

I figure if I don't learn something new every day then I've wasted my day!!!

Thanks again,
Pete


Top
#5026 - 2000-11-29 04:58 PM Re: @KIX on server and on client ?
Anonymous
Unregistered


Bryce,

One more question.

I just upgraded a Win 98 workstation to Win 2000 Pro. This batch file doesn't seem to recognize the line that says:

IF "%OS%" == "Windows_NT" GOTO WinNT

It wants to run the Win 9x portion of the batch file. It seems to work on my other Win 2k clients, but not this upgraded machine. Do I need to edit the registry? Where is this value held?

Thanks,
Pete

Top
#5027 - 2000-11-29 05:00 PM Re: @KIX on server and on client ?
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
weird....

what do you get when you go to a cmd line and type this

echo %os%

Bryce

Top
#5028 - 2000-11-29 05:03 PM Re: @KIX on server and on client ?
Anonymous
Unregistered


Wow that was quick!

It says "Windows_NT"

But the script hangs right after it says:

Verifying / Updating Script Software Installation, Please Wait...

Pete

Top
#5029 - 2000-11-29 05:25 PM Re: @KIX on server and on client ?
Anonymous
Unregistered


Never mind......it's working now. I have no idea what was wrong.

Pete

Top
#5030 - 2000-11-30 04:49 PM Re: @KIX on server and on client ?
Anonymous
Unregistered


I still have one more question here. Is there a way to differentiate between Win NT and Win 2K in this type of batch file? Obviously using the %OS% won't work since they both register WIndows_NT.

Since Win 2K can do deep drive mappings, I would like to do it that way rather than use hidden shares by calling a different Kix script for the Win 2K clients.

Thanks,
Pete

Top
#5031 - 2000-11-30 06:22 PM Re: @KIX on server and on client ?
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Use the bat file just to determine where to copy the exe and if you need the dll's or not, then run your kix script. Use the @dos macro to determine if a system is NT or 2000.

example.

code:

select
case @inwin = 1 and @dos = "4.0"
? "this is NT"
case @inwin = 1 and @dos = "5.0"
? "this is Win2000"
endselect

IF you really wanted to get detailed information I suggest that you take a look at the What OS script by Radimus http://kixtart.org/board/Forum2/HTML/000760.html

Bryce

Top
#5032 - 2000-11-30 07:16 PM Re: @KIX on server and on client ?
Anonymous
Unregistered


Thanks for the info Bryce!

As a new user of KiXtart I see there is a lot to learn!

Pete

Top
Page 2 of 2 <12


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

Who's Online
0 registered and 1110 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.038 seconds in which 0.016 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