Batch Files: Examples

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

Checksums for the ZIPed sources Click the question mark icons to view the MD5 and SHA1 checksums for the ZIPed 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
Click the floppy disk icons to dowload the ZIPed sources Click the question mark icons to view the MD5 and SHA1 checksums for the ZIPed sources Name Version Description OS (1) Last modified
(yyyy-mm-dd)
Remarks
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source GetDevDJ.bat 1.00 Check if a HP DeskJet printer driver is installed NT 2002-03-30 Requires DEVCON.
Tip by Eric Krause
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source GetDevLT.bat 1.00 Check if a Logitech mouse driver is installed NT 2002-03-30 Requires DEVCON.
Tip by Eric Krause
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source GetDevSB.bat 1.00 Check if a Creative Sound Blaster driver is installed NT 2002-03-30 Requires DEVCON.
Tip by Eric Krause
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source GetID.bat 1.02 Search and display login and full names based on part of a user's full name (fails on migrated NT4 user accounts) W2K3 2004-08-06 Requires DS Tools
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source GetIP.cmd 3.00 Show PC's IP address (both Windows NT/2000/XP and OS/2 Warp/eCS) NT OS2 2002-02-09  
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source GetIP98.bat 1.00 Show PC's IP address (Windows 98) 98 2001-02-16  
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source GetMacXP.bat 1.00 Show MAC address of any computer in the workgroup or domain NT 2006-09-06  
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source GetPorts.bat 2.12 Show I/O addresses for serial and parallel ports All 1999-10-16 Also available as Perl script
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source GetPrn.bat 1.01 Display default printer for current user and list all printers for local system. NT 2001-03-08 Requires REG 1.0 or 2.0.
Works on NetBIOS/LAN Manager networks.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source GetPrn2.bat 1.00 Display default printer for current user and list all printers for local system. NT 2001-03-08 Requires REG 1.0 or 2.0.
Works on "real" NT networks.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source GetRAM.bat 1.10 Show the amount of RAM in MB NT 2001-07-17 Use Memory.bat instead for more speed (Memory.bat needs the NT Resource Kit).
The VBScript version can display the amount of RAM on remote computers as well (if WMI enabled).
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source GetRAM.bat 2.00 Show the amount of RAM in MB W2K 2002-05-05 Use Memory.bat instead for more speed (Memory.bat needs the NT Resource Kit).
The VBScript version can display the amount of RAM on remote computers as well (if WMI enabled).
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source GetRes.bat 1.00 Show display resolution and refresh rate NT 2001-09-09 Requires REG 1.0 or 2.0.
Also available as OS/2 Rexx script.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source GetRes.bat 2.00 Show display resolution and refresh rate NT4 2001-09-09 Also available as OS/2 Rexx script.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source GetRes.bat 3.00 Show display resolution and refresh rate NT 2002-11-04 Also available as OS/2 Rexx script.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source GetRes.bat 4.00 Show display resolution and refresh rate XP 2007-05-22 Also available as OS/2 Rexx script.
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source GifList.bat   Display all GIF files in your web browser All 1999-03-21 Consists of 3 interdependent batch files
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source GrMember.bat 0.53 Displays the members of the specified group(s). W2K 2005-04-03 Requires Windows Server 2003's DS Tools
Click the floppy disk icon to dowload the ZIPed source Click the question mark icon to view the MD5 and SHA1 checksums for the ZIPed source GUIEnvironment.bat   Edit NT's environment values in GUI mode NT 2001-05-12 Incorrect changes to NT's environment may cause serious system software malfunctions. Use entirely at your own risk!

 

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
Kix Windows (most functions also in plain DOS) with KiXtart
NT4 Windows NT 4 (Windows NT 4 Terminal Server Edition too)
NT Windows NT (Windows 2000 and Windows NT 4 Terminal Server Edition too)
W2K Windows 2000, and probably XP and Server 2003 as well
W2K3 Windows Server 2003
XP Windows XP
OS2 OS/2 Warp
TS Windows NT 4 Terminal Server Edition, or Windows 2000 Server or Windows Server 2003 with Terminal Services
QR Code for http://www.robvanderwoude.com/batexamples.php?fc=G

visitors must be on to something...

page last uploaded: 2 September 2010, 18:50