Batch files - Examples (A*)

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 ActUsr.bat Display computers on the network and their logged on users NT 30/09/2002  
Download the ZIPped sources AddIPPrn.bat Add a local TCP/IP printer on any W2K/XP computer in the network W2K+RK 31/01/2006 Uses PRNADMIN.DLL and several VBScripts from the Windows 2000/2003 Server Resource Kit
Download the ZIPped sources AdOnGone.bat Restore disappeared Firefox add-ons after a Firefox update W2K 28/03/2008  
Download the ZIPped sources AddPrint.bat Add a network printer on any W2K/XP computer in the network W2K 11/06/2005 Uses Windows' native RUNDLL32
Download the ZIPped sources AdminGrp.bat Remotely update Local Administrator groups on all PCs in a domain (except PCs listed in an exclusion file) NT+RK 29/11/2000 Written by Kenneth C. Mazie, Kaiser Permanente National Server Operations - Walnut Creek, Ca
Download the ZIPped sources ADSHelp.bat Create a (HTML) help file for "all" Directory Service Command Line Tools in Windows Server 2003 W2K3 04/06/2007 Will only display help for the OS in which the HTML file was created -- in the language of that OS version, as is demonstrated here.
Download the ZIPped sources AllHelp.bat Create a (HTML) help file for "all" NT 4/2000/XP commands NT 26/10/2006 Will only display help for the OS in which the HTML file was created -- in the language of that OS version, as is demonstrated in these German and English and Dutch pages.
Added better support for European languages in version 1.40.
Some help text, like FINDSTR's, is still displayed incorrectly due to the occurrence of &, < and > characters in its output.
Download the ZIPped sources Apipa.bat Display or modify Windows 2000 IP Autoconfiguration (APIPA) settings W2K 03/03/2002 Also available in VBScript
Download the ZIPped sources Asc.bat Return the ASCII value for the specified character, more or less like many scripting languages' Asc( ) function NT 15/12/2007 Uses DEBUG to create a temporary utility that performs the conversion
Download the ZIPped sources AtFuture.bat Schedule a command a few minutes from now in the near future NT 22/04/2008 This batch file was a coproduction with Rob Fuller

 

 

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