Fileaze banner

 

WSH Examples (L*)

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

 

WSH Examples
Download the ZIPped sources Name Description Language Last
modified
(DD/MM/YYYY)
Also available as: Remarks
JS VBS DOS bat NT bat Kix Perl Power
Shell
Rexx
Download the ZIPped sources LastBoot Display the last boot time for any WMI enabled computer   V 09/12/2003   NT       R Created using Microsoft's Scriptomatic tool.
NT batch version displays time elapsed since last boot and requires SRVINFO.EXE from the NT 4 Resource Kit.
Rexx version for OS/2 only.
Download the ZIPped sources LeapYear Check if the specified year is a leap year J V 08/10/2002 D NT K P PS R MS-DOS version uses BATCHMAN by Michael Mefford
Download the ZIPped sources ListCert List certificates on the local computer   V 07/01/2008             ALPHA version!
A first exploration of working with certificates using CAPICOM
Download the ZIPped sources LstOffVw List all Office Viewers and their version numbers   V 17/05/2008   NT         The VBScript version uses WMI.
The batch file uses FILEVER.EXE and is about 10 times as fast.
Download the ZIPped sources Make NumLock, CapsLock and ScrollLock light up in patterns:  
LockKitt From left to right and back again J V 11/01/2004     K       These scripts each end after 15 seconds.
KiXtart versions cannot use ScrollLock, and are slower.
LockLoop From left to right in loops J V 31/12/2003     K      
LockRand At random J V 31/12/2003     K      
LockSnak Crawling like a snake J V 02/01/2004     K      
Download the ZIPped sources Logoff Logoff current user on any WMI enabled computer on the network   V 19/10/2002   NT K     R Adapted from posts by Alex K. Angelopoulos on Developersdex and Michael Harris on a VBScript newsgroup.