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 Obscure.bat 1.00 Obscure URLs by converting host names to decimal IP addresses and by adding a fake host name as logon name NT 2003-05-18 Also available as Perl and Rexx scripts.
Batch version is limited to IP addresses 0.0.0.0 through 127.255.255.255; for higher IP addresses the batch file will prompt you to manually add 2 decimal numbers.
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 OpenAs.bat 1.01 Open Windows' "Open As" dialog for a specified file NT 2002-06-20  
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 OUMember.bat 1.03 Displays the members of the specified OU(s). W2K 2004-11-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 Own.bat 0.59 Recursively take ownership of specified directory tree W2K 2002-09-30 Requires TAKEOWN
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 Owner.bat 1.00 Display the owner of specified file(s) W2K 2002-02-03  

 

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=O

visitors can't be wrong...

page last uploaded: 2 September 2010, 18:50