Rob van der Woude's Scripting Pages

Batch Files: Examples (H)

💾 Click the floppy disk or package (for third party scripts) 📦 icons to download the ZIPped sources

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

 

 

All 0..9 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

 

Batch file examples
💾 Name Version Description OS (1) Last modified Remarks
💾 HardDisk.bat 1.00 List harddisks, their interfaces and revision numbers for any computer on the network NT 2005-01-15 Requires DEVCON.
The script will prompt you to download DEVCON if it isn't found.
💾 Hardware.bat 1.00 Uses BATCHMAN to display a basic hardware summary DOS3 2002-12-02 Requires BATCHMAN.
More advanced versions available as XP batch file, HTA, KiXtart and VBScript scripts for Windows.
💾 Hardware.bat 3.10 Uses WMIC to display a basic hardware summary XP 2006-10-03 Requires WMIC.
Also available as MS-DOS batch file, HTA, KiXtart and VBScript scripts for Windows.
💾 HasMouse.bat 1.01 Check the actual number of mice available at this very moment W7 2024-03-11 Requires WMIC.
Requires elevated privileges
💾 Hex2Bin.bat   Convert hexadecimal numbers to binary NT 2010-07-15 Requires PHP
💾 Hex2Dec.bat   Convert hexadecimal numbers to decimal NT 2010-07-15 Requires PHP
💾 History.bat 1.00 Create or delete "Internet History" folder on your desktop 95 98 NT (IE 4/5) 2001-06-26 Based on an article by Nick Francesco.
💾 HostName.bat 1.00 Display host name for specified IP address NT OS2 2000-06-04 Version 1.00 shows the host name for a specified IP address.
Available as Rexx script for OS/2 as well.
💾 HostName.bat 2.00 Display host name for specified IP address NT4 2001-04-21 Version 2.00 not only shows the host name for a specified IP address, but the Mac address, NetBIOS name and domain or workgroup too.
💾 HostName.cmd 3.01 Display host name and IPv4, IPv6 and MAC addresses for the specified computer W7 2023-03-13 Version 3 accepts host names as well as IP addresses for input.
💾 Hotfixes.bat 2.00 Display a list of hotfixes installed locally NT 2002-11-24 Also available as KiXtart and VBScript scripts.

 

All 0..9 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

 

Notes: (1) Operating System version these batch files were written for
All No version specific commands are used, though it is (obviously) not tested with every DOS version available
95 Windows 95 (and probably Windows 98 as well)
98 Windows 98
DOS3 MS-DOS 3 and 4
DOS6+ MS-DOS 6 and later
NT Windows NT 4 and later
NT4 Windows NT 4 (Windows NT 4 Terminal Server Edition too)
W2K Windows 2000 and later
XP Windows XP
W2K3 Windows Server 2003
W2K8 Windows Server 2008
W10 Windows 10
WV Windows Vista
W2K8R2 Windows Server 2008 Release 2
W7 Windows 7
OS2 OS/2 Warp
TS Windows NT 4 Terminal Server Edition, or Windows Server 200* with Terminal Services

page last modified: 2024-03-11; loaded in 0.0236 seconds