Batch files - Examples (O*)

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

 

Batch file examples
Download the ZIPped sources Name Description OS (1) Last modified
(DD/MM/YYYY)
Remarks
Download the ZIPped sources Obscure.bat Obscure URLs by converting host names to decimal IP addresses and by adding a fake host name as logon name NT 18/05/2003 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.
Download the ZIPped sources OpenAs.bat Open Windows' "Open As" dialog for a specified file NT 20/06/2002  
Download the ZIPped sources OUMember.bat Displays the members of the specified OU(s). W2K 03/11/2004 Requires Windows Server 2003's DS Tools
Download the ZIPped sources Own.bat Recursively take ownership of specified directory tree W2K+RK 30/09/2002  
Download the ZIPped sources Owner.bat Display the owner of specified file(s) W2K 03/02/2002  
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