#41852 - 2003-06-20 11:02 AM
Re: Lots O Questions (sorry)
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11634
Loc: Space
|
Keith, If you take a look in the FAQ section on this board about XP you'll find an explanation of why it is your XP systems can not find your drives.kix file. (at least I think this may be your issue) But, then again, maybe Bryce gave you the answer already.
If you do not have any Windows 9x systems then you don't need to use a batch file at all. You can simply run either
KIX32.EXE KIXTART.KIX or WKIX32.EXE KIXTART.KIX
Then there should not be an issue calling the DRIVES.KIX file, but you could also include all the code in a single file and run it that way.
Windows 9x is the one that gets lost and does not know where it is in the environment. NT/2000/XP/2003 do not have this problem, thus there is no need to launch KiXtart with a batch file for these systems.
As for the COUNT DOWN TIMER I think this may be a better solution.
break on
$Date="2003/09/22"
$EventDay=(serialdate($Date) - serialdate(@date))
SELECT
CASE
$EventDay >0
? "There are " + $EventDay + " days till The Annual Corporate Conference this year on Sept. 22nd"
CASE
$EventDay <0
? "The Annual Corporate Conference passed by " + $EventDay + " day/s ago."
CASE
$EventDay =0
? "The Annual Corporate Conference is " BIG "TODAY" SMALL
ENDSELECT
function serialdate($ExpD)
dim $z,$h,$a,$b,$c,$y,$m,$d
if instr($ExpD,'/')
$ExpD=split($ExpD,'/')
$y=val($ExpD[0])
$m=val($ExpD[1])
$d=val($ExpD[2])
if $m<3
$m=$m+12
$y=$y-1
endif
$SerialDate=$d+(153*$m-457)/5+365*$y+$y/4-$y/100+$y/400-306
else
$z=0+$ExpD+306
$h=100*$z-25
$a=$h/3652425
$b=$a-$a/4
$y=(100*$b+$h)/36525
$c=$b+$z-365*$y-$y/4
$m=(5*$c+456)/153
$d=$c-(153*$m-457)/5
if $m>12
$y=$y+1
$m=$m-12
endif
$SerialDate=right('0000'+$y,4)+'/'+right('00'+$m,2)+'/'+right('00'+$d,2)
endif
endfunction
|
[ 20. June 2003, 11:09: Message edited by: NTDOC ]
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 648 anonymous users online.
|
|
|