#95807 - 2003-01-27 12:19 AM
Re: KIX-INFO+MIRROR: summary of UDF items on "http://www.scriptlogic.com" site
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
Our link about Scriptlogic's function library has been updated. Our link is kix-udf2.htm, plain text version is kix-udf2.txt. Scriptlogic's new link is FunctionList.aspx
Latest status
code:
ScriptLogic Functions (c) 2003 - scripting@wanadoo.nl 2.15 . 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. N 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 Ascan Searches all elements of an array for a matching expression. Asort Sorts the elements of the array. 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 DateMath Performs mathematical computations on a date or computers days between two dates. Day Returns the day portion of a specific date. N 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). Exp Mathematical Exponentiation FillWithAsterisk Displays asterisks while user enters password. FindPROC Returns the PID of the requested process 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. 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. 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. 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. N 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. 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 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 QueryHotFix Queries the installation of a specific Operating System Hot Fix or displays all Hot Fixes installed on the specified computer. RegWrite Creates deep registry keys N 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. slUBound Returns the upper boundary of an array, or -1 if the array has only one element and the element is a blank string. N 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 that a given users is a member 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 116 20020125 (5 new entries/no updated entries)
greetings.
btw: at the moment we will update this information once a week. Working on a new version based on new format on Scriptlogic site. [ 27. January 2003, 00:46: Message edited by: MCA ]
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 476 anonymous users online.
|
|
|