Click the floppy disk icons to download the ZIPed sources
Click the question mark icons to view the MD5 and SHA1 checksums for the ZIPed sources
| Perl examples | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Name | Description | Last modified (DD/MM/YYYY) | Also available in | Remarks | ||||||||
| DOS batch |
NT batch |
JScript | KiXtart | Power Shell |
Rexx | VB Script | ||||||
| BIOS | Display some basic BIOS properties | 11/09/2006 | NT | K | PS | R | V | Created using my WMI Code Generator | ||||
| BIOSDate | Display BIOS date | 12/12/2003 | D | NT | R | Original idea by
ComputerHope. Perl, batch and Rexx versions all use DEBUG.EXE to read info from BIOS. |
||||||
| BIOSInfo | Display BIOS manufacturer & date | 12/12/2003 | K | R | Perl, KiXtart and Rexx versions use
DEBUG.EXE to read info from BIOS. VBScript and KiXtart versions created using Microsoft's Scriptomatic tool. |
|||||||
| BkAllDrv | Backup all Windows 2000 drivers | 14/02/2004 | NT | K | R | This scripts requires Microsoft's
DEVCON utility. Rexx versions to backup only modem and video drivers available too. |
||||||
| Choice | A limited port of MS-DOS' CHOICE command | 03/10/2003 | NT | K | R | More info on the CHOICE command | ||||||
| Convert to and from Unix style text files | ||||||||||||
| CrLf | Replace orphaned CR or LF with CR/LF pairs | 25/03/2003 | R | CR = Carriage Return, LF = Line Feed | ||||||||
| CrLf2Lf | Replace CR/LF pairs with LF's only | 25/03/2003 | R | |||||||||
| DblCr2Cr | Replace double CR/LF pairs with single pairs | 28/03/2003 | R | |||||||||
| Cut | "Cut" substrings from standard input | 23/03/2003 | R | Rexx version also available for
OS/2. Explained (a little) on my UNIX ports page. |
||||||||
| Dec2Hex | Convert a decimal number to 8 digit hexadecimal | 13/11/2002 | NT | K | R | V | ||||||
| DefPRN2K | Display default printer for Windows 2000 | 08/04/2003 | NT | J | K | R | V | JScript & VBScript versions are for NT 4/2000/XP. Other versions are for Windows 2000 (and maybe XP, not tested). |
||||
| Easter | Show date of Easter for the specified year | 14/01/2003 | NT | J | K | R | V | Based on the instructions found at Simon Kershaw's KEEPING THE FEAST | ||||
| False | Port of UNIX' "false" command | 01/04/2003 | K | R | See also matching True | |||||||
| FaR | Find And Replace substrings in a string | 13/04/2003 | K | R | KiXtart version comes with matching FaR.bat | |||||||
| GetPorts | Display port addresses for serial and parallel ports | 12/01/2003 | D | NT | R | Perl, Rexx and batch versions all use DEBUG.EXE | ||||||
| GetRes | Show screen resolution | 11/09/2006 | NT | K | PS | R | V | Created using my
WMI Code Generator. Rexx version is for OS/2, use WMIGen to generate Object Rexx version for Windows. |
||||
| KeyLocks | Return the status of the CapsLock, NumLock and ScrollLock keys | 01/12/2007 | NT | V | ||||||||
| LeapYear | Check if the specified year is a leap year | 14/01/2003 | D | NT | J | K | PS | R | V | MS-DOS version uses BATCHMAN by Michael Mefford | ||
| MidiTitl | Display title(s) of specified MIDI file(s) | 21/01/2004 | NT | |||||||||
| Obscure | Obscure an URL by converting its host name part to a decimal IP address and by optionally adding a fake logon name | 13/12/2003 | NT | R | Your browser's security settings may block the use of decimal IP addresses | |||||||
| PrintPDF | Print a list of specified PDF files | 30/04/2003 | NT | K | R | V | ||||||
| Random | Display a random (integer) number between 1 and 100 | 24/09/2001 | D | NT | J | K | R | V | ||||
| ReadINI | Read a value from an INI file | 05/03/2005 | NT | K | R | V | Batch version may fail on "special" characters like & | < > and brackets | |||||
| ReadReg | Read a value from the registry | 05/04/2003 | NT | K | R | V | Batch version may fail on "special" characters like & | < > and brackets | |||||
| N/A | Ren_ext | Rename files using regular expressions | Written by seth | |||||||||
| SortDate | Display the current date in YYYYMMDD format (for sorting purposes) | 03/09/2001 | D | NT | J | K | PS | R | V | MS-DOS version uses BATCHMAN by Michael Mefford | ||
| SortTime | Display the current time in HHmmSS format (for sorting purposes) | 03/09/2001 | D | NT | J | K | R | V | MS-DOS version uses BATCHMAN by Michael Mefford | |||
| StarDate | Convert current date & time to stardate | 26/01/2003 | NT | K | R | V | Based on an algorithm found on The StarTrek Gallery | |||||
| Tee | Display standard input on screen and redirect it to a file simultaneously | 24/03/2003 | NT | R | Explained (a little) on my UNIX ports page | |||||||
| Tomorrow | Display tomorrow's date ("sorted") | 29/12/2002 | J | K | PS | R | V | |||||
| True | Port of UNIX' "true" command | 01/04/2003 | K | R | See also matching False | |||||||
| VideoROM | Display video adapter manufacturer info read from video ROM | 02/03/2003 | D | NT | K | R | V | Perl, batch and Rexx versions use
DEBUG.EXE
(original idea by
ComputerHope). VBScript and KiXtart versions created using Microsoft's Scriptomatic tool. |
||||
| Week | Display the current week number | 21/08/2001 | D | NT | J | K | PS | R | V | DOS batch file uses WeekOfYr.exe. | ||
| Which | Locate the specified program file | 23/03/2003 | D | NT | K | PS | R | Rexx version also available for
OS/2. Explained (a little) on my UNIX ports page. |
||||
| WMIGen.hta | This HTA generates Batch, C#, F#, JScript, KiXtart, Object Rexx, Perl, PowerShell, Python, Ruby, VB .NET and VBScript code for WMI queries | 19/05/2011 | Automatically checks for updates. 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. |
|||||||||
| Yesterday | Display yesterday's date ("sorted") | 03/09/2001 | NT | J | K | PS | R | V | ||||
| page last uploaded: 19 May 2011, 22:25 |