scripting@wanadoo.nl



Home | History of Site | Last info of Site | Summary of Site | Site Map | Links | Supported OS           Search Site
BB info | BB statistics
Mail - feedback | Mail - member of site | Mail - request

Kixtart FAQ | Kixtart UDF | Scriptlogic UDF | BB index | BB Specials


UDFs of Scriptlogic

 I Abs                        Mathematical absolute value.
   AllFlags                   Given two numbers, returns a boolean true if ALL the '1' bits in the second number are set in the first number, else returns a boolean false.
   AllSpecialFolders          Dynamically sets variables with the path of all available Windows special folders.
   AnyFlags                   Given two numbers, returns a boolean true if ANY of the '1' bits in the second number are set in the first number, else returns a boolean false.
   ArrayEnumKey               Creates an array of names of the subkeys contained in a registry key or subkey.
   ArrayEnumValue             Creates an array of names of the registry entries contained in a registry key or subkey
 I AScan                      Searches all elements of an array for a matching expression.
   AsciiAry                   Returns two-dimensional ASCII array of lower ASCII characters, the type of character (control, symbol, lower, upper, number), the technical name for the character, a mnemonic name for the character, visual substitution character (where applicable), and whether the character is printable or not.
   Asort                      Sorts the elements of the array.
   atDeleteAllJobs            Deletes all scheduled Jobs on a specific host.
   atDeleteJob                Delete a task scheduler jobs on a local or remote NT/2000/XP-Machine. uses WMI, for NT 4.0 you have to install WMI first.
   atGetJobs                  Get all task scheduler jobs on a local or remote NT/2000/XP-Machine.
   atNewJob                   Adds a scheduled Jobs on a specific host.
   BinaryIP                   Converts an IP address into a binary string.
   CalcLogicalSubnet          This function returns the logical subnet ID when given an IP-Address and Subnet mask.
   CnvtBase                   Converts numbers from any base (2-36) to any base (2-36). i.e. base 2=binary, 8=octal, 10=decimal, 16=hex, etc.
   CnvtBase2                  Within the numeric and string limits of KiXtart, converts any numeric base to any other numeric base.
   CompareFileDates           Compares the dates of two files.
   CompareVersions            Compares two multi-segment version strings.
   cTime                      Converts a cTime time into Kixtart format
   DateFr                     Return the date to French format (DD/MM/YYYY).
   DateMath                   Performs mathematical computations on a date or computers days between two dates.
   Day                        Returns the day portion of a specific date.
   DBCommand                  Executes a SQL statement and returns an array of records if applicable.
   DBConnClose                Closes a connection to a database that has previously been opened with DBConnOpen()
   DBConnOpen                 Open a connection to a database using ADODB
   DBExecuteSQL               Executes a SQL command on a database
   DBGetRecordset             Retrives a recordset from a database as the result of a SQL query
   DBRecordsetClose           Closes a recordset that has beeen previously opened with DBRecordsetOpen()
   DBRecordsetOpen            Opens a recordset object from a database
   DelDirTree                 Deletes all directories and files under $root ($root is excluded). Excludes from deletion any directory (and its content) listed in $excludelist. $excludelist is a string containing a semicolon-separated list of dirs.
   DelPrinterConnections      unmaps connected printers
   DisplayText                Displays text at specified coordinates (or centered on row). Color may be optionally specified..
   divIP                      Strip IP address to separate octets for use in mathematical comparisons, et al. Concatenates trimmed IP address together as human-readable form (e.g. 192.168.0.10).
N  dnsSearchOrd               Changes client DNS search order based on your definition (through SELECT...CASE statement). Also makes differentation between Windows NT and 2000/XP.
   Exp                        Mathematical Exponentiation
N  Filesystem                 Determinate the Filesystem on a specified drive.
   FillWithAsterisk           Displays asterisks while user enters password.
   FindPROC                   Returns the PID of the requested process
N  fixPROD                    Fixes "@productsuite" macro to report better (specifics).
   Flip_Currency              Add or remove the currency symbol (as defined in your system setup) in a number.
   Flip_Dec                   Add or remove the decimal character (as defined on your system) in a number/string.
   Flip_Numsep                Add or remove number separators (i.e. commas for U.S.) in a number.
   Flip_SerTime               Given a time, returns seconds since midnight. Given seconds since midnight, returns a time.
   Fmt                        Given a string and formatting codes, returns a formatted string.
   GetADsPathFromHexSid       Uses COM (ADsSecurity.DLL) to translate a Hex Sid into the objects AdsPath.
   GetDefaultPrinter          Gets the name of the current user's default Windows printer.
   GetDiskName                Returns the volume name of the selected partition.
   GetDrives                  Returns an array of drives of a particular type.
   GetDrives2                 Returns an array of drives of the specified types.
   GetFileExt                 Returns only the filename's extension, given a filespec.
   GetFileName                Returns the filename-only portion of a given filespec.
   GetFilePath                Returns the path-only portion of a given filespec.
   GetFolderSize              Return the total bytes consumed by the files in a folder tree.
N  GetGUID                    Creates a GUID (globally unique identifier).
N  GetIEAutoDetect            Returns the "Automatically detect settings" check box in IE.
   GetIPinfo                  Gathers a computers IP address, subnet mask, and default gateway on computers that do not support EnumIPinfo().
   GetLineCount               Counts the lines in a given text file.
   GetLines                   Gets a line or range of lines from a text file.
   GetServiceStartup          Returns the startup state of any service, given its 'short' name.
   GetSoftwareList            Return and array consisting of the software programs installed on the client.
   GroupMembers               returns an array containing all members of a specified group.
   GUICopy                    Uses the Shell Object to copy or move files/folders. Displays the animated 'Copying Files' progress dialog as files/folders are being copied.
   HostsInstall               Checks for an IP Address and alias name. If needed, it will update.
 I IIF                        Also known as an Immediate IF, this function evaluates a logical expression and then returns one of two results.
   InContainer                Determines if the current NT4 acount name type of the user or computer is a member of a specific container (OU, Computers, etc) in Active Directory.
   InGroups                   Checks whether the user is a member of a group, given a list of one or more groups.
   InOU                       Check user/computer OU from Active Directory Updated on 05/09/2002, 9x/NTx flavor only
   InString                   Scans a string for the presence of a second string.
   IsAlpha                    To determine whether supplied character string consists of alphabetic characters (non numeric)
   IsLower                    This function determines supplied string is lowercase.
   IsRas                      Determines if client is using a dial-up connection (modem) to access the network.
   IsUNC                      Indicates whether the given path is a UNC or not.
   IsUpper                    This function determines supplied string is uppercase.
 I Join                       Combine the elements from an array into a single, concatenated string.
   JoinArray                  Joins two arrays together. Also allows the adding of elements to an array.
   JoinRev                    Combine the elements from an array (in reverse order) into a single, concatenated string.
   LastLogged                 Action: Show users that have not logged in 30 days
   Left                       Returns a String containing a specified number of characters from the left side of a string
   MakePath                   Creates a multi-level directory structure on a local or remote system.
   MakePathsFromADlocation    Use TranslateName() to return the Conical Name of an account from the ActiveDirectory. The concical name is then split up and the parts are used to build a series of directory paths that are stored in an array. Certain characters that are invalid in in directory names are removed from the conical name and are not included in the final path. This array of paths can be used to execute subscripts for specific collections of users or computers based on domain and OU hierachy.
   MapDrv                     Briefly describe the action of the function.
 I Mod                        Mathematical modulus
   Month                      Returns the month portion of a specific date.
   MonthName                  Returns the month name, given a specific date or number.
   MsecSleep                  Sleep for a number of mili-seconds.
   NUGMap                     Automate net use without even edit your kix-file, all just based on groups in the domain
   NumberWords                Returns the English words for a given number. I.e. 23504 is "Twenty-Three Thousand Five Hundred Four"
   NumSep                     Inserts thousand separators in a number.
   Occurs                     Calculates the number of times a string occurs within another string, element or all the elements of an array.
   Ordinal                    Takes a number and returns the named series of that number (e.g.: 1st, 2nd, 53rd, 89th, etc.).
   PadStr                     Left pad or Right pad a string with specified character(s) to a specified overall length.
   Pipe                       Submits a shell command and redirects output to an array
N  p2pause                    Press "P" to pause, "SPACE" to quit...
   QueryHotFix                Queries the installation of a specific Operating System Hot Fix or displays all Hot Fixes installed on the specified computer.
N  RegASCIItoHEX              Converts a ASCII string to a HEX string that can be written to the registry.
N  RegHEXtoASCII              Converts a registry HEX string key to an ASCII string.
   RegWrite                   Creates deep registry keys
   RemoteCommand              Execute a command, local to that PC, using the system account.
   Repeat                     Returns a string composed of specified character(s) repeated n times.
   RepeatStr                  Repeats a given string a specified number of times.
   Replace                    The function replace all subString in a String with another subString.
   ReplaceStr                 Given a string, this function replaces either the first occurrence or all occurrences of second supplied string.
   Right                      Returns a String containing a specified number of characters from the right side of a string.
   SerialDate                 Convert dates to numbers (and back) for the purpose of performing date math.
   SerialTime                 Convert time to numbers (and back) for the purpose of performing time math.
N  SetIEAutoDetect            Toggles the "Automatically detect settings" check box for IE.
   slUBound                   Returns the upper boundary of an array, or -1 if the array has only one element and the element is a blank string.
   slQueryHotFix              Queries whether a specific hotfix is installed -or- returns a string of all hitfixes that are installed.
   Str                        Returns any numeric expression as a string.
   StringReplace              The function replaces all subString occurrences in a String with another subString, original by Jeff Shahan, modified by Michel Sijmons to really replace strings.
   Strip                      Removes (by default) all punctuation from a given string. However, any list of characters may be specified for removal.
   StrSidToHexSid             Converts a Sid in string (S-1-5-21-...) format to Hex format
   Stuff                      Allows to add, replace, remove or substitute characters of one text string with another.
   TitleCase                  Places correct case on first position of character string and to the rest of characters in string.
   Touch                      Touches the save time on the file to current time. If the files doesn't exist, it is created as empty.
   TranslateName              Translates from one name type to another. Good for converting an NT4 type name like domain\user into an LDAP distinguished name used in Active Directory or the reverse.
   TrimIP                     This function returns a valid IP address trimmed for spaces
   TypeWrite                  Display specified text at a specified location using a 'command & conquer' typewriter style (E.V.A.)
   Unique                     Creates a zero-length unique-named file in the specified directory and returns the fully qualified file spec.
   UserGroups                 returns a list of groups taht a given users is a meber of
   UserRename                 Renames a NT user account.
   ValidColor                 Validates Colors for Foreground and Background
   VerboseDate                Returns a verbose representation of a specific date. Example: "April 1st, 2001".
   VersionCompare             Compare two multi-segment version strings.
   Wait                       Pauses script execution for a specified number of seconds or until a key is pressed.
   WeekDaysDiff               Calculate the number of week days (M-F) between two dates.
   Word                       Returns the nth word from a string.
   Words                      Count the number of words in a text string.
   Write                      Send a string to one or more destinations.
   WriteLog                   Permanently opens the file coded in the UDF as file handle "1" and writes time stamped text to file handle "1" throughout the execution of your script.
   WriteLog2                  Writes text to a specified log file with optional TimeStamp.
   XOR                        Performs a binary Exclusive Or on two numbers..
   Year                       Returns the year portion of a specific date.

  Functions   134 20031015   ( 9 new entries/no updated entries)
                             ( 5 internal commands/functions)
                             (no daily update)
    link is a printer-friendly mirror of topic on scripting@wanadoo.nl site back to top


FunctionList


Copyright © 2003 Scriptlogic & scripting@wanadoo.nl - last updated on 1 November 2003


Site Meter