Batch files - Examples (I*)

 

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

 

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

 

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 Description OS (1) Last modified
(DD/MM/YYYY)
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 IEFavSrt.bat Make Internet Explorer automatically sort its favorites W2K 17/02/2005  
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 IEVer.bat Log Internet Explorer version NT4+RK
W2K
17/02/2005 Requires REG.EXE
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 InvShare.bat Show Event Log entries concerning invalid share names NT+RK 05/06/2000  
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 IP2User.bat Display remote computer and user info NT 25/10/2003 For English Windows versions.
Needs to be modified if used with other languages.
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 IsDev Check if specified name is a valid device name All 06/12/1999 Both DOS and OS/2 batch files supplied; both will work in NT
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 IsFAT.bat Check if specified drive is FAT formated or not NT 15/02/2001 This batch file has become obsolete; use FileSys.bat instead
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 IsNumber.bat Check if specified value is numeric or not NT 11/01/2008 No screen output if a valid number was specified. Returns different errorlevels for different types of numbers. Errorlevel 0=NAN, 1=batch file error, 2=binary, 8=octal, 10=positive decimal integer, 11=negative integer, 16=hexadecimal. To check for a number in general use IF ERRORLEVEL 2, for specific types use IF %ERRORLEVEL% EQU 10 (10 for positive decimal integer)
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 IsRTCSet.bat Check if the CMOS Real Time Clock is set, and return an errorlevel greater than 0 if not NT 24/01/2009 Uses DEBUG to read the RTC status from the CMOS

 

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
QR Code for http://www.robvanderwoude.com/batexamples_i.php

unique visitors since July 2007

page last uploaded: 14 June 2010, 12:23