Batch files - Examples (G*)

 

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

 

Click the diskette icon to dowload the ZIPped source Click the floppy disk icons to download the ZIPped sources

 

Batch file examples
Click the diskette icon to dowload the ZIPped source Name Description OS (1) Last modified
(DD/MM/YYYY)
Remarks
Click the diskette icon to dowload the ZIPped source GetDevDJ.bat Check if a HP DeskJet printer driver is installed NT 30/03/2002 Uses Microsoft's DEVCON utility.
[Tip by Eric Krause]
GetDevLT.bat Check if a Logitech mouse driver is installed 30/03/2002
GetDevSB.bat Check if a Creative Sound Blaster driver is installed 30/03/2002
Click the diskette icon to dowload the ZIPped source GetID.bat Search and display login and full names based on part of a user's full name (fails on migrated NT 4 user accounts) W2K3 06/08/2004 Requires Windows Server 2003's DS Tools
Click the diskette icon to dowload the ZIPped source GetIP.cmd Show PC's IP address (both Windows NT/2000/XP and OS/2 Warp/eCS) NT OS2 09/02/2002  
Click the diskette icon to dowload the ZIPped source GetIP98.bat Show PC's IP address (Windows 98) 98 16/02/2001  
Click the diskette icon to dowload the ZIPped source GetMacXP.bat Show MAC address of any computer in the workgroup or domain NT 06/09/2006  
Click the diskette icon to dowload the ZIPped source GetPorts.bat Show I/O addresses for serial and parallel ports All 16/10/1999 Also available as Perl script
Click the diskette icon to dowload the ZIPped source GetPrn.bat
GetPrn2.bat
Display default printer for current user and list all printers for local system. NT+RK 08/03/2001 GetPrn works on NetBIOS/LAN Manager networks, GetPrn2 works on "real" NT networks.
Click the diskette icon to dowload the ZIPped source GetRAM.bat Show the amount of RAM in MB NT 17/07/2001 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).
GetRAM2K.bat W2K 05/05/2002
Click the diskette icon to dowload the ZIPped source GetRes.bat V.1 Show display resolution and refresh rate NT+RK 09/09/2001 Also available as OS/2 Rexx script
GetRes.bat V.2 NT4 09/09/2001
GetRes.bat V.3 NT 04/11/2002
GetResXP.bat V.4 XP 22/05/2007
Click the diskette icon to dowload the ZIPped source GifList.bat Display all GIF files in your web browser All 21/03/1999 Consists of 3 interdependent batch files
Click the diskette icon to dowload the ZIPped source GrMember.bat Displays the members of the specified group(s). W2K 03/04/2005 Requires Windows Server 2003's DS Tools
Click the diskette icon to dowload the ZIPped source GUIEnvironment.bat Edit NT's environment values in GUI mode NT 12/05/2001 Incorrect changes to NT's environment may cause serious system software malfunctions. Use entirely at your own risk!

 

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 meant 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)
NT+RK Windows NT with Resource Kit (Windows NT 4 Terminal Server Edition with Resource Kit too)
W2K Windows 2000, and probably XP and Server 2003 as well
W2K+RK Windows 2000 with (Server) Resource Kit, 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

unique visitors since July 2007

page last uploaded: 13 September 2009, 16:26