Page 1 of 2 12>
Topic Options
#16583 - 2002-01-24 06:58 PM Kix vs BAT
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
I have a question. I am an administrator of approximately 30 locations linked by 56 - 256K lines.. currently I am using bat script processing to accompish my tasks accompanied by utils in the script like con2prt or regini and IFMEMBER. Script processing is slow because of the link speed. My concern for KIX is not related to the ease of use but the speed. Will I notice a speed difference if I move to KIX. Some things will still have to be done through bat simply because I do not know kix well at all. My concern is will it be worth my time to re-write the scripts in KIX? How does the KIX process faster than say a basic bat file? Thank you in advance for any replies I get.
_________________________
Austin Henderson

Top
#16584 - 2002-01-24 07:27 PM Re: Kix vs BAT
Will Hetrick Offline
Hey THIS is FUN

Registered: 2001-10-02
Posts: 320
Loc: Harrisburg, PA USA
Dear Austin,

Have you ever heard of the old saying

"If it is not broken, Don't fix it!"

_________________________
You have at least 2 choices. Each choice changes your destiny. Choose wisely!

Top
#16585 - 2002-01-24 07:30 PM Re: Kix vs BAT
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
I have heard of that... and I also know the saying it is good but can be better. When you have users complaining about a 30-45 second login script you want to try to help them because you know how annoying it is. That is why I am looking for alternatives. I hardly feel that your reply addressed my questions but thank you for your time.
_________________________
Austin Henderson

Top
#16586 - 2002-01-24 07:31 PM Re: Kix vs BAT
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
I was in the same boat as you, and I had about a half dozen comand-line utilities in my logon folder, and logon time for remote users was problematic.

Then I copied the files locally to the clients to try to cut that time down. Then I got missing/deleted files, permission issues in copying the files, and issues in updating/adding new functionality, with the need to distribute new files.

Then I discovered Kixtart in the reskit (sound of heavenly trumpets)... All that other crap went away, I have kix32.exe in the users windir, and it can do THOUSANDS of times more stuff than virtually every dos utility combined.

If you want it done in a logonscript Kix will do it, and usually alot easier that in DOS, and a hundred times easier than WSH.

BTW, it is very fast, and 4.02 is supposed to be even faster determining SIDs and Group stuff.

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#16587 - 2002-01-24 07:35 PM Re: Kix vs BAT
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
BTW...

You could probably post a hunk of your bat file, and some of here could convert it to kix to give you examples and pointers.

Some of us here spend a great deal of time on ASCII art, and would welcome a challenge.

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#16588 - 2002-01-24 07:35 PM Re: Kix vs BAT
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
Very nice... thank you for your professionalism. I like you have come up with the method of copying the files locally and just making a sync step the first thing that I do... i suppose right now my main problem is not so much what I can and cannot due in bat but rather the time it takes to process the scripts. Is anyone aware of how the scripts are processed in bat vs kx? Is it by line or is the file read in then processed? Mainly right now I need to be able to check a clients IP address... store third octet in variable and then determine a group membership to map a printer... I am accomplishing this now but it is timely.

Thank you in advance for your support.

_________________________
Austin Henderson

Top
#16589 - 2002-01-24 07:51 PM Re: Kix vs BAT
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
If I recall correctly, the entire file is read, then processed. As UDFs are usable when placed anywhere in a script.

Some of the big posters like Shawn, MCA, Bryce, etc should be able to dissemble the actual processing involved.

I run the script remotely through (slow)dialup connections with kix32 on the local machine, and am hard pressed to notice a real difference in processing speed compared to a LAN connection.

The most noticable slowdown occurs during the attaching of shares, but that is due to dialup, not the script.

I have about several hundred (500+) lines of code (60kb) in my logon script and it processes in about 30-45 seconds

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#16590 - 2002-01-24 07:53 PM Re: Kix vs BAT
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
very interesting... perhaps I should look into this... are you stating that on the LAN it processes in 30-45 sec or through dialup?
_________________________
Austin Henderson

Top
#16591 - 2002-01-24 08:01 PM Re: Kix vs BAT
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
both...

LAN is faster, Wan is slower.

The more network connections made the slow it takes, as the OS is making connections.

This is a link to an older version of my script. use the next button on the page to go to the subsequent sections.

Logon script methodology (part 1)

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#16592 - 2002-01-24 08:12 PM Re: Kix vs BAT
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
I looked at that script and I have no idea what it is doing... this would take some serious time to learn this stuff it looks like.
_________________________
Austin Henderson

Top
#16593 - 2002-01-24 08:18 PM Re: Kix vs BAT
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
for the most part, the basic DOS commandline stuff is emulated in KIX.

The remainder of the functions are named with very logical names.

If you can speak it in pseudo-code, you will not have much to do to covert it to kix. There are some more advanced functions that require more overhead.

But a batch file can ALMOST be converted line-by line... (within reason)

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#16594 - 2002-01-24 08:20 PM Re: Kix vs BAT
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
So I suppose I ask the question why use kix over bat then.. is it just simplicity?
_________________________
Austin Henderson

Top
#16595 - 2002-01-24 08:40 PM Re: Kix vs BAT
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
Kix is a single exe with many functions that you are using many additional command line utilities.

a For/next loop is invaluable.

Builtin registry functions.

Very fast

Easy to learn

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#16596 - 2002-01-24 08:41 PM Re: Kix vs BAT
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
Where would I find basic stuff about how to do the basic things in kix such as attach to printers or map drives...
_________________________
Austin Henderson

Top
#16597 - 2002-01-24 08:55 PM Re: Kix vs BAT
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
here
www.scriptlogic.com
www.brainbuzz.com

RTFM you can DL it from this site if you don't already have it

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#16598 - 2002-01-24 09:03 PM Re: Kix vs BAT
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
code:

if ingroup("groupname")
use h: "\\server\sharename"
endif

if ingroup("anothergroup")
$ret=addprinterconnection("\\server\printername")
endif


can't get much easier than that...

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#16599 - 2002-01-24 09:08 PM Re: Kix vs BAT
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
that is sweet what is the $ret for?
_________________________
Austin Henderson

Top
#16600 - 2002-01-24 09:10 PM Re: Kix vs BAT
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
some commands return an error or value or status. $ret is there to catch that value without it displaying on the screen.
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#16601 - 2002-01-24 09:51 PM Re: Kix vs BAT
Austin Offline
Seasoned Scripter

Registered: 2002-01-24
Posts: 439
How about this.. can I set variables just the same as in bat set varname=

and then can I call the variable as %varname%

can I use commands as I normally would in bat style such as copy or xcopy or ping

Can I use all normal DOS shell stlye commands?

_________________________
Austin Henderson

Top
#16602 - 2002-01-24 10:30 PM Re: Kix vs BAT
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
First... Kix Starters Guide for the basics.

as for external commands, you can SHELL or RUN those commands.

shell '%comspec% /c dir c:\ /s/b'

shell will pause script execution until the called command is finished. RUN will execute the program abd continus executing the script.

Bryce

Top
Page 1 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 2082 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 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