Page 1 of 1 1
Topic Options
#73736 - 2003-02-27 03:54 PM re: Lonkero's UDFs
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
Hey lonk, how about inserting some code to ensure your dependencies are met.

if (instr(@producttype,'2000') or instr(@producttype,'NT')) and val(left($iever,1))=>4
...
else
exit 1
endif
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#73737 - 2003-02-27 04:48 PM Re: re: Lonkero's UDFs
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
it would actually be:
$ver=getfileversion("%windir%\system32\shell32.dll")
if not len($ver)
$ver=getfileversion("%windir%\system\shell32.dll")
endif
if not ($ver="4.71" or $ver="5.00") exit 1 endif

but it slows down too much.
I see no reason... other than those ppl who doesn't keep their system up to date.
_________________________
!

download KiXnet

Top
#73738 - 2003-02-28 01:26 AM Re: re: Lonkero's UDFs
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear Lonkero,

it slows down too much

what are you meaning with this. Simple starting up a computer cost more
time, than running a large script.
Our experience is that we can do extremly much things in 1 or 2 seconds
kixtart time.
Things which can slowdown a script are
- SHELL/RUN statements
- USE commands
- too much file operations
etc, etc.

Of course it can be a point that people should keep their system up to
date, but it isn't always possible. Mostly the reason isn't they want
it, but the managers doesn't want it.
Also it can be very expensive to keep all systems up to date. NTDOC can
agree, that with me.

We agree with Radimus, that a little of version checking should
be done.
Reasons:
- sometimes members are mentioning only an UDF without talking about restrictions.
- reading the comments and UDF on itself can suggest it works on too much environments.
- it should prevent at least that wrong information will be returned, or in worse
case script aborts in specific environment.

greetings.

btw: see also on of our reaction on WKIX32.EXE deployment (F14-429) about too slow.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#73739 - 2003-02-28 06:11 AM Re: re: Lonkero's UDFs
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
you got a partial point there.

well, what about those ppl that don't need the checks?
their UDF running in these cases would cost at least double runtime!
_________________________
!

download KiXnet

Top
#73740 - 2003-02-28 08:55 PM Re: re: Lonkero's UDFs
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
hey lonk... in your research of those new UDFs, have you come across a good refresh desktop function?
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#73741 - 2003-02-28 09:04 PM Re: re: Lonkero's UDFs
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
you mean something that does F5?

doesn't minimize-windows & restore-windows do that?
_________________________
!

download KiXnet

Top
Page 1 of 1 1


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

Who's Online
0 registered and 657 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.057 seconds in which 0.028 seconds were spent on a total of 12 queries. Zlib compression enabled.

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