Page 1 of 1 1
Topic Options
#193215 - 2009-03-27 05:40 AM Using SET cmd in Kix runs very slow
GregVM Offline
Fresh Scripter

Registered: 2006-07-12
Posts: 5
Loc: Orange County CA
I've had the ongoing issue of slowness in my loginscript when using the SET cmd. It takes our WinXP SP2 machines 7-8 seconds just to set 8 environment vars. I've tried to use %COMSPEC% instead but there are no results at all when using it to call the native SET in DOS.

I've run additional tests like the one below and it takes alot of time to run. This one takes average 12 seconds which is just waaaay to long:

Set 'UID=MP060096'
Set 'UID1=MP060096'
Set 'UID2=MP060096'
Set 'UID3=MP060096'
Set 'UID4=MP060096'
Set 'UID5=MP060096'
Set 'UID7=MP060096'
Set 'UID8=MP060096'
Set 'UID9=MP060096'
Set 'UID10=MP060096'
Set 'UID11=MP060096'
Set 'UID12=MP060096'
Set 'UID13=MP060096'
Set 'UID14=MP060096'

Anyone else experiencing this or have a workaround?

TIA!

Top
#193216 - 2009-03-27 06:48 AM Re: Using SET cmd in Kix runs very slow [Re: GregVM]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
Have you tried SetL or SetM, Look at the manual and you will see why SET is taking so long.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#193255 - 2009-03-30 07:33 PM Re: Using SET cmd in Kix runs very slow [Re: Gargoyle]
GregVM Offline
Fresh Scripter

Registered: 2006-07-12
Posts: 5
Loc: Orange County CA
cool, I read the docs and now understand. I tried SetL but the results do not show up in the explorer shell's environment and my apps that use the enviro vars fail.

My IT support dept is complaining about the slowness so maybe I'll try moving this portion of the kix script to a separate batch file and call to it. Using the SET cmd with COMSPEC in Kix shows no results.

thx

Top
#193267 - 2009-03-31 02:03 AM Re: Using SET cmd in Kix runs very slow [Re: GregVM]
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
SetL, will only show in the enviroment in which it was created (Set Local), if you need it to be available for the entire system you need to use SetM (Set Machine).

If you need to set this everywhere and make it permenant on all machine, then look at adding it to the registry, and then you can just check to make sure it exists and if it does not, create it.
_________________________
Today is the tomorrow you worried about yesterday.

Top
#193273 - 2009-03-31 03:56 PM Re: Using SET cmd in Kix runs very slow [Re: Gargoyle]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
but set for user and make it stick, there is no "fast" way to make it in kix.
one needs to indeed set it via writevalue.
_________________________
!

download KiXnet

Top
Page 1 of 1 1


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

Who's Online
0 registered and 846 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.089 seconds in which 0.045 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