+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 18
Scripts Thread, KiXtart in Coding and Web Development; I'm experimenting with KIXtart to see if its any better/worse than the multiple VBS/BAT files i use at present There ...
  1. #1

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,806
    Thank Post
    880
    Thanked 684 Times in 453 Posts
    Rep Power
    505

    KiXtart

    I'm experimenting with KIXtart to see if its any better/worse than the multiple VBS/BAT files i use at present

    There is one Major VBS script that I have - Per Room Printer Mapping - and not sure how to do a similar thing in KiX

    Another VBS script I have is to rename network drives so that the kiddies cannot see the sharename & path - again how can i do this in KiX

    Or can i get Kix to run these VBS scripts?

  2. #2
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,995
    Thank Post
    123
    Thanked 286 Times in 263 Posts
    Rep Power
    108

    Re: KiXtart

    Kix is supposed to be good little language but I have read plenty of times how people have migrated away from Kix to VBS.

    Just looking through http://scriptlogic.com/Kixtart/htmlhelp/default.asp

    I can see the commands to find out host names and how to add printer connections on the first page.

    So theres your start.

  3. #3

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,613
    Thank Post
    746
    Thanked 1,707 Times in 1,520 Posts
    Rep Power
    437

    Re: KiXtart

    The thing with kix is that you need th kix interpreter to run the scripts whereas vbs is native.

    Ben

  4. #4

    Join Date
    Apr 2006
    Location
    UK
    Posts
    939
    Thank Post
    39
    Thanked 70 Times in 54 Posts
    Rep Power
    30

    Re: KiXtart

    select
    case %room%="EDUGEEK"
    If ADDPRINTERCONNECTION ("\\server\borther-2040") = 0
    IF SetDefaultPrinter ("\\server\brother-2040") = 1
    Endif
    Endif
    endselect
    EXIT

    Just need to set a new enviroment variable called ROOM with the value EDUGEEK and away you go

  5. #5
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42

    Re: KiXtart

    Never used KiX myself but i cant really see the point of migrating from one language to another... wouldnt it be loads of kix scripts instead of vbs scripts?

  6. #6

    Join Date
    May 2006
    Posts
    66
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: KiXtart

    A while ago I was experimenting with some kix logon scripts someone else had written to try and make them faster, discovered that the logon time problem was elsewhere and left the scripts alone. The language looked interesting and well suited to login scripts and such. More powerful than batch files, but doesnt come close to linux/unix shell scripts!

  7. #7
    sahmeepee's Avatar
    Join Date
    Oct 2005
    Location
    Greater Manchester
    Posts
    795
    Thank Post
    20
    Thanked 70 Times in 42 Posts
    Rep Power
    34

    Re: KiXtart

    We use kixtart for our logon scripts here. It's pretty good in that you can do simple things easily and for complex things people have made ready-made functions that you can bolt together easily. That's how I made the chunk of script which audits user logins to a sql database. Another nice feature of kixtart is that it logs the user out if they manage to close the login script while it's running.

    Send me a pm if you want to see our printer management script - it adds printers based on user, group membership and room in just about any combination from an easy-to-edit ini file. Yes, pride of batch files is a bit sad.

    @plexer you just have to run kix32.exe from netlogon, so there's nothing tricky there.

  8. #8

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    Boston, MA
    Posts
    7,597
    Thank Post
    109
    Thanked 770 Times in 598 Posts
    Rep Power
    183

    Re: KiXtart

    Used to use KiX to map printers but decided to convert to VBS cos it made more sense to me and I seem to remember having some issues at the time.

  9. #9

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,806
    Thank Post
    880
    Thanked 684 Times in 453 Posts
    Rep Power
    505

    Re: KiXtart

    Still playing about with KiX and not decided whether to implement it yet -

    Currently have about 4 VBS scripts and several batch files so may combine the batch files into KiX and leave the VBS ones alone as they are used for the printers, to rename the Network drives, etc

    I like that you can put information into a "Box" - handy for when your deleting all the kids MP3s and Games

  10. #10
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    34

    Re: KiXtart

    Used to use KiX, but moved away from it as was having trouble remembering the syntax for KiX, VB, VBS, VBA.

    Nowadays I have the same problem trying to remember syntax for VBS, CMD , AutoIT and soon PowerShell no doubt.

    What's good about each one?

    KiX - Some nice built in functions to ease logon scripts (group membership checking being the most obvious I suppose)

    VBS - No interpreter required. Will run on any Windows box these days. Can do most things with WMI, ADSI, ActiveX etc.

    CMD - Again, nothing extra required. Can do some very clever things but syntax seems less self explanatory. Can launch a 16bit app and wait for completion before continuing. Not easy from VBS/AutoIT (dunno about Kix).

    AutoIT - Great functions for automating tasks, watching for dialogs, clicking buttons etc. Plus it compiles to executable. Now supports creation of GUIs. Comes with comprehensive help and a reasonable IDE (SCiTE)

    PowerShell - Only had a brief look, but it can be very powerful. There's an an example single line command which iterates through all your Exchange servers looking for disconnected mailboxes and reconnects them to matching user accounts.

  11. #11
    azrael78's Avatar
    Join Date
    Sep 2007
    Location
    Devon
    Posts
    383
    Thank Post
    47
    Thanked 37 Times in 33 Posts
    Rep Power
    21

    Re: KiXtart

    We use KIX pretty much exclusively here, moving from a combined legacy of .BAT and .VBS.

    Took some time to get my head around it but now I use it for pretty much everything.

    .BAT files are good, if it's a simple job - use them, for anything more complex I use KIX.

    I can always convert .VBS to KIX relatively easily anyway, plus the support network for KiX is fantastic

  12. #12

    Join Date
    Jul 2007
    Location
    Devon
    Posts
    233
    Thank Post
    8
    Thanked 9 Times in 8 Posts
    Rep Power
    16

    Re: KiXtart

    Quote Originally Posted by danIT
    select
    case %room%="EDUGEEK"
    If ADDPRINTERCONNECTION ("\\server\borther-2040") = 0
    IF SetDefaultPrinter ("\\server\brother-2040") = 1
    Endif
    Endif
    endselect
    EXIT

    Just need to set a new enviroment variable called ROOM with the value EDUGEEK and away you go
    Code:
    Dim oNet
    
    Set oNet = CreateObject("WScript.Network")
    
    If LCase( Left( oNet.ComputerName, 2 ) ) = "pe" Then
    
    strConnectString = "\\ntserverx1\ICT-MF"
    strResult = objWSHNetwork.AddWindowsPrinterConnection(strConnectString)
    
    End If
    I've never heard of Kix until I read this topic, but I'm not entirely sure what the advantage to using it is?

    I use VB to map drives based on groups/computers, add printers based on computer names and have had no problems with it, nor does it appear to have any impact on logon times.

    All the info on VB is widely available too - the fact that if you can use the command in VB6, you can probably use it in a VBS script. (I've only made a quiz in VB before, so I wouldn't know if that's totally true.)

  13. #13

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    9,240
    Thank Post
    353
    Thanked 1,330 Times in 915 Posts
    Blog Entries
    4
    Rep Power
    1188
    I am now using Kixtart to add network printers for staff at logon. I would like to know:

    1. What the syntax is to remove any printers already attached [I am getting one printer installed at all stations and can't find where it is coming from] Until I can find the source of it I would like to remove it, installing it only for stations in that room.

    2. What the syntax is to comment in a Kixtart script. I have tried 'REM' and ';' at the start of the line I want to enter a helpful comment but this seems to crash my script.

    Any ideas?

  14. #14


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    1) try delPrinterConnection
    2) ;

    edit: delprinter connection
    http://www.scriptlogic.com/Kixtart/h...connection.htm

  15. Thanks to CyberNerd from:

    DaveP (10th December 2008)

  16. #15

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    9,240
    Thank Post
    353
    Thanked 1,330 Times in 915 Posts
    Blog Entries
    4
    Rep Power
    1188
    I am now using Kixtart to add network printers for staff at logon. I would like to know:

    1. What the syntax is to remove any printers already attached [I am getting one printer installed at all stations and can't find where it is coming from] Until I can find the source of it I would like to remove it, installing it only for stations in that room.

    2. What the syntax is to comment in a Kixtart script. I have tried 'REM' and ';' at the start of the line I want to enter a helpful comment but this seems to crash my script.

    Any ideas?



SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. The KiXtart free-format scripting language
    By ninjabeaver in forum Downloads
    Replies: 10
    Last Post: 16th June 2005, 01:11 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •