Rob van der Woude's Scripting Pages

Perl 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 ZIPped sources Click the floppy disk icons to download the ZIPped sources

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

 

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

 

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

 


page last uploaded: 2016-09-19, 14:57