KiXtart Examples

 

0 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

 

Download the ZIPed sources Click the floppy disk icons to download the ZIPed sources

Checksums for the ZIPed sources Click the question mark icons to view the MD5 and SHA1 checksums for the ZIPed sources

 

KiXtart examples
Click the floppy disk icons to dowload the ZIPed sources Click the question mark icons to view the MD5 and SHA1 checksums for the ZIPed sources Name Description Last modified (DD/MM/YYYY) Also available in Remarks
DOS
batch
NT
batch
JScript Perl Power
Shell
Rexx VB
Script
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source AVVer Check the number of days passed since the last virus definitions update (checks both Symantec AntiVirus Corporate Edition and Network Associates' McAfee VirusScan) 17/05/2004   NT           This KiXtart script was written for SAV version 7.6. Use SAVVer.kix to check on SAV versions 9 and 10.
Note: These scripts and its author are in no way associated with neither Symantec nor Network Associates.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source BIOS Display BIOS information for any WMI enabled computer on the network 09/01/2003   NT   P PS R V Created using Microsoft's Scriptomatic tool.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source BIOSInfo Display BIOS information for any WMI enabled computer on the network 13/04/2003       P   R   KiXtart version uses the same WMI code as BIOS.kix, plus DEBUG.EXE to retrieve the BIOS release date. Perl and Rexx versions use DEBUG.EXE only.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source BkAllDrv Backup all Windows 2000 drivers 12/01/2004   NT   P   R   This scripts requires Microsoft's DEVCON utility
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source BrFolder Open a Browse Folder dialog 30/03
2007
            V Based on the Hey Scripting Guys article How Can I Show Users a Dialog Box That Only Lets Them Select Folders?
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source CapsOff If CapsLock is ON, toggle it OFF again 14/12/2007               Works only with KIX32.EXE, not with WKIX32.EXE
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source CDEject Eject all CDROMs 07/01/2003         PS R V Based on a VBScript posted by Christoph Fricke in a WSH scripting newsgroup; needs Windows Media Player.
Rexx version (for OS/2 only) needs OS/2 Multimedia (MMOS2) Rexx support.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source CDROM Display CD-ROM drive letter(s) 09/01/2003 D NT       R V A modified version of Ruud van Velsen's GetDrvs.kix sample script that comes with the KiXtart 4.* distributions
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source CompName.kix
CompName.bat
Change Windows 9x computer name 12/10/2003                
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source Dec2Hex Convert a decimal number to 8 digit hexadecimal 17/11/2002   NT   P   R V  
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source DefPRN2K Display Windows 2000/XP's default printer and port 08/01/2003   NT J P   R V  
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source DelTrash2 Empty the recycle bin without prompting for confirmation, or remove only files older than the specified number of days 17/06/2007             V This script requires BinManager by Tim Tabor.
Based on Tim Tabor's own JScript sample.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source Easter Calculate Easter date for a specified year 30/03/2002   NT J P   R V Easter2.kix contains a fix to make it work in KiXtart 4.20 or later.
Scripts based on the instructions found at Simon Kershaw's KEEPING THE FEAST.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source Easter2 30/12/2002
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source False Port of UNIX' "false" command 02/04/2003       P   R   See also matching True
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source FaR.kix and
FaR.bat
Find And Replace substrings in a string 15/07/2001       P   R    
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source GetRes Display Windows 2000's screen resolution and refresh rate 09/01/2003   NT   P PS R V Rexx version for OS/2 only
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source Hardware Display basic hardware summary for the local computer 01/01/2005 D NT         V
HTA
Created using Microsoft's Scriptomatic tool.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source Hotfixes List installed hotfixes 24/11/2002   NT         V VBScript version created using Microsoft's Scriptomatic tool.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source IsLaptop Check if the script runs on a laptop or not 29/07/2006               Based on Guy Thomas' CHASSIS.VBS script
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source KixINI.vbs Demo VBScript uses KiXtart COM object to read or write INI files 01/07/2010             V Requires KIXTART.DLL to be registered.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source KixMacro This script makes the Kix macro commands available for batch files 23/06/2001                
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source LeapYear Check if the specified year is a leap year 26/11/2002 D NT J P PS R V MS-DOS version uses BATCHMAN by Michael Mefford
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source LiveUpd Run Symantec's LiveUpdate unattended using KiXtart's SendKeys() function. 21/08/2001                
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source LoCase Convert file names to all lower case 01/06/2001   NT       R   Use UpCase to convert to all upper case
  Make NumLock and CapsLock light up in patterns:

     
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source LockSwap From left to right and back again 31/12/2003     J       V These scripts each end after 15 seconds.
VBScript and JScript versions use ScrollLock too, which allows more patterns.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source LockRand At random 31/12/2003     J       V
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source LockSnak Crawling like a snake 02/01/2004     J       V
 
     
    Logoff & Shutdown Logoff and shutdown using KiXtart                  
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source MDACVer Display the currently installed MDAC version, and optionally check if it meets a required minimum version 15/05/2008             V More details on my Software Requirements page
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source NICSpeed Display ethernet adapter's link speed for any WMI enabled computer 21/01/2006             V Created using Microsoft's Scriptomatic tool.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source NoWinUpd Disable Windows' Update feature 10/04/2002   NT           Use WinUpd to reenable Windows Update
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source PMChoice.bat
PMChoice.kix
Poor Man's Choice: a combination of a batch file and a KiXtart script to replace the CHOICE command that was left out in NT. 09/10/2003       P   R   Requires KiXtart 4.01 or later for timeout only; older KiXtart versions will not fail unless timeout is specified.
Timeout not implemented in Perl version.
Rexx version needs Quercus Systems' REXXLIB for timeout only; if not available will just ignore specified timeout option. Rexx version even accepts redirected input.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source Printers Map printers to LPT ports using individual scripts, optionaly mapping Windows' default printer to LPT1 17/10/2000               Tested in NT4 SP5 only
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source PrintPDF Print the specified PDF file(s) 03/05/2003   NT   P   R V Needs Acrobat Reader to be the default file association for PDF files. Usually fails when other Adobe software is installed.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source ProdID Display Windows' Product ID 31/03/2002   NT         V  
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source Random Generate random numbers 21/04/2001 D NT J P   R V  
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source ReadINI Read a value from an INI file 30/03/2003   NT   P   R V Batch version may fail on "special" characters like & | < > and parentheses
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source ReadReg Read a value from the registry 30/03/2003   NT   P   R V Batch version may fail on "special" characters like & | < > and parentheses
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source Resistor Test your knowledge of E12 resistor color codes 08/11/2004           R   Rexx version tested in OS/2 only; uses ANSI escape sequences to produce colored text
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source Revo_Ver Read the latest available uninstaller version from Revo's website 18/08/2009             V  
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source SAVVer Display Symantec AntiVirus program file and definitions version 15/04/2006               Note: This script and its author are in no way associated with Symantec.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source SCSI Enumerate local disk drives (SCSI and IDE) 14/10/2003   NT       R   Tested in Windows 2000 only
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source SecCheck Security Check: logs and warns if password age or virus definitions age exceed a specified limit, or when specified hotfixes are not installed 30/09/2003               Combines AVVer and W2KHotFixes and adds password age check.
Add to logon script to make users aware of vulnerabilities.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source SecStat Display a SecurityCenter status overview 30/12/2008   NT         V Requires Windows XP SP2 or later.
Use WBEMTEST.EXE to find all properties for a specific AntiVirus or Firewall product.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source Services Display services and their properties 26/11/2002   NT         V Created using Microsoft's Scriptomatic tool.
    Shutdown & Logoff Shutdown and logoff using KiXtart                  
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source SortDate Display current date in YYYYMMDD format 14/12/2000 D NT J P PS R V MS-DOS version uses BATCHMAN by Michael Mefford
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source SortTime Display current time in HHmmSS format 16/12/2000 D NT J P   R V MS-DOS version uses BATCHMAN by Michael Mefford
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source StarDate Convert current date & time to stardate 03/05/2003   NT   P   R V Based on an algorithm found on The StarTrek Gallery
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source Tomorrow Display tomorrow's date in 2 formats 22/02/2008     J P PS R V Thanks for Michael Kahle for correcting an error in the leapyear code
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source True Port of UNIX' "true" command 02/04/2003       P   R   See also matching False
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source UpCase Convert file names to all upper case 01/06/2001   NT       R   Use LoCase to convert to all lower case
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source User Input Receive user input and store it in an environment variable 16/12/2000                
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source VideoROM Show display adapter manufacturer's information read from adapter ROM 09/01/2003 D NT   P   R V KiXtart and VBScript versions created using Microsoft's Scriptomatic tool.
Batch, Perl and Rexx versions use DEBUG.EXE.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source W2KHotFixes Check if the specified Windows 2000 hotfixes have been installed 25/09/2003               Uses an external ASCII file (W2KHotFixes.lst) to list the hotfixes to be checked.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source Week Display week number 10/02/2003 D NT J P PS R V  
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source Which Locate the specified program file 07/04/2003 D NT   P PS R   Also available as OS/2 Rexx script
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source WinUpd Reenable Windows' Update feature 10/04/2002   NT           Use NoWinUpd to disable Windows Update
Click the floppy disk icon to dowload the ZIPed source   WMIGen.hta This HTA generates Batch, C#, JScript, KiXtart, Object Rexx, Perl, PowerShell, Python, Ruby, VB .NET and VBScript code for WMI queries 30/06/2010             HTA Automatically checks for updates on startup.
Based on the example from the Microsoft TechNet ScriptCenter article Scripting Eye for the GUI Guy, with help from the Scripting Guys' Scriptomatic 2.0 and HTA Helpomatic tools and The Script Center Script Repository: Sample Windows PowerShell Scripts.
C# code generation with assistance of Bas van der Woude.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source Yesterday Display today's and yesterday's date in 2 formats 04/09/2001   NT J P PS R V  
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source ZapVBS Associate VBScript files to Notepad, effectively disabling VBScript (to disable e-mail viruses while you are installing some real protection software) 09/06/2001                

 

0 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

 

QR Code for http://www.robvanderwoude.com/kixtartexamples.php

visitors can't be wrong... can they?

page last uploaded: 1 September 2010, 11:34