Fileaze banner

 

WSH Examples (R*)

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 batch NT batch Kix Perl Power
Shell
Rexx
Download the ZIPped sources Random Display a random (integer) number between 1 and 100 J V 29/12/2002 D NT K P   R  
Download the ZIPped sources ReadINI Read a value from the specified INI file   V 19/04/2003   NT K P   R Batch version may fail on "special" characters like & | < > and brackets
Download the ZIPped sources ReadReg Read a value from the registry   V 06/04/2003   NT K P   R Based on "Registry functions Provided by the WMI StdRegProv class" by Andrew Mayberry.
Download the ZIPped sources Reboot Reboot any WMI enabled computer on the network   V 21/11/2007 D NT K P   R Based on a post by Alex K. Angelopoulos on www.developersdex.com.
See my Shutdown page for shutdown and reboot commands for "all" operating systems.
Download the ZIPped sources Recycle Send the contents of a folder to the Recycle Bin   V 17/01/2008              
Download the ZIPped sources RndClass Retrieve true random numbers from random.org   V 13/08/2007             Uses a class to retrieve the random integers
Download the ZIPped sources RndComp Retrieve true random numbers from random.org   V 15/08/2007             Uses a Windows Script Component to retrieve the random integers
Random.WSC WSC
Download the ZIPped sources runNhide Run a command hidden   V 24/10/2007             Based on a similar script by Alistair Johnson; I added some basic error checking and the possibility to use multiple command line arguments.