Rob van der Woude's Scripting Pages

WSH: Examples (R)

HTA, JScript, VBScript and WSC examples

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

 

 

All 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

 

WSH 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 Version Description Last modified
(yyyy-mm-dd)
Remarks
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.vbs 1.00 Display a random (integer) number between 1 and 100 2002-12-29  
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.wsc 1.00 This WSC uses random.org to retrieve true random integers 2007-08-15 Requires WinHTTP 5.1. 
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.vbs 1.00 Read a value from the specified INI file 2003-04-19 Batch version may fail on "special" characters like & | < > and parentheses
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.vbs 1.00 Read a value from the registry 2003-04-06 Based on "Registry functions Provided by the WMI StdRegProv class" by Andrew Mayberry.
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 Reboot.vbs 2.10 Reboot any computer 2007-11-21 Based on a post by Alex K. Angelopoulos on www.developersdex.com.
See my shutdown.php">Shutdown page for shutdown and reboot commands for "all" operating systems.
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 Recycle.vbs 1.10 Send the contents of a folder to the Recycle Bin 2008-08-10  
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 Reg2Scr.vbs 0.2 Read a registry key and generate KiXtart and VBScript code to recreate that registry key 2008-07-07 Works from any computer to any computer
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 Reg2Vbs.vbs 1.51 Converts all .REG files in current directory to VBScript in one shot 2012-02-17 Original script by Tim Mortimer, extended by Denis St-Pierre.
Make sure you read the logged comments in the resulting scripts!
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 Regedit.vbs 1.00 Open Windows 2000's REGEDIT.EXE in "classic" view (root) instead of last accessed key 2002-04-16 Tip and VBScript file from the Windows Scripting Guide
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 ResumePrinting.vbs 1.00 Resume printing on the specified printer 2010-07-11 Use PausePrinting.vbs to pause printing.
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 Revo_Ver.vbs 2.00 Read the latest available uninstaller version from Revo's website 2012-08-08 Requires WinHTTP 5.1. 
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 RFaR.vbs 1.00 Regex Find and Replace 2010-07-30 Can be used to replace text in ASCII files or strings.
Limited testing on XML files suggests UTF-8 is handled correctly as long as no Unicode characters need to be found or replaced.
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 RndClass.vbs   This class retrieves true random numbers from random.org 2007-08-13 Requires WinHTTP 5.1. 
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 RndComp.vbs 1.00 Demo script retrieves true random numbers from random.org using Random.wsc component 2007-08-15 Requires WinHTTP 5.1.
The VBScript uses the Windows Script Component to retrieve the random integers
Click the floppy disk icon to download the ZIPped source   Romans.hta 2.00 Convert Roman numerals to decimal vv. 2013-11-12 Also available as on-line JavaScript version
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 RunNHide.vbs 2.00 Run a command hidden 2007-10-24 Based on a similar script by Alistair Johnson; I added some basic error checking and the possibility to use multiple command line arguments.

 

All 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: 2015-08-24, 21:18