Batch Files: Examples (All)

Download the ZIPed sources Click the floppy disk or Download the ZIPed sources 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 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 4AllCtxSrv.bat 1.12 Executes a command once for each member of a Citrix farm, substituting the "#" character by the server name W2K 2005-02-14 Requires Citrix client software. 
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 4AllMembers.bat 1.10 Executes a command once for each member of a global group, optionaly substituting the "#" character by the user ID NT4 2002-02-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 4AllMembers.bat 2.11 Executes a command once for each member of a global group, optionaly substituting the "#" character by the user ID W2K 2002-09-11 Handles local, domain local and global groups.
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 4AllMembers.cmd 1.00 Executes a command once for each member of a global group, optionaly substituting the "#" character by the user ID OS2 2000-06-04  
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 A2U.bat 1.10 Convert ASCII text files to valid Unicode W2K 2011-05-10 Written by Carlos M.
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 ActUsr.bat 1.00 Display computers on the network and their logged on users NT 2002-09-30  
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 Add.cmd 1.02 Add really big numbers (beyond Windows' 32-bit integer limits) NT 2012-07-20 Written by Brian Williams
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 AddIPPrn.bat 1.01 Add a local TCP/IP printer on any W2K/XP computer in the network W2K 2006-01-31 Requires PRNADMIN.DLL
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 AddMySQLPort.bat 1.00 Open port 3306 for MySQL in XP's Firewall XP 2006-07-29 Requires NETSH.
Written by Willi Huber.
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 AddPrint.bat 1.01 Add a network printer on any W2K/XP computer in the network W2K 2005-06-11 Requires RUNDLL32
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 AdminGrp.bat 3.00 Remotely update Local Administrator groups on all PCs in a domain (except PCs listed in an exclusion file) NT 2000-11-29 Requires USR2GRP.
Written by Kenneth C. Mazie, Kaiser Permanente National Server Operations - Walnut Creek, Ca
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 AdOnGone.bat 1.00 Restore disappeared Firefox add-ons after a Firefox update W2K 2008-03-28  
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 ADSHelp.bat 2.10 Create a (HTML) help file for "all" Directory Service Command Line Tools in Windows Server 2003 W2K3 2007-06-04 Requires Windows Server 2003's DS Tools.
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.
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 AllHelp.bat 1.40 Create a (HTML) help file for "all" NT4/2000/XP commands NT 2006-10-26 More details and samples of generated HTML pages on my AllHelp page.
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 APIPA.bat 1.00 Display or modify Windows 2000 IP Autoconfiguration (APIPA) settings W2K 2002-03-03 Also available in VBScript
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 AppCompat.bat 1.01 Add an Application Compatibility Layer for the specified program W7 2011-10-18  
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 Asc.bat 1.00 Return the ASCII value for the specified character, more or less like many scripting languages' Asc( ) function NT 2007-12-15 Requires DEBUG.
Creates a temporary utility that performs the conversion.
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 ASCII2Uc.bat 2.01 Convert ASCII text files to valid Unicode W2K 2011-02-28 Requires DEBUG.
This batch file was based on research by Jacques Bensimon.
Creates a temporary utility to write the Unicode file header.
Embedded ASM code by JustBurn.
64-bit Windows uses either an "external" header file (ASCII2Uc.header) or ECHO instead of DEBUG; ECHO will insert an extra line break.
Also available in VBScript.
This batch file has become obsolete by Carlos M.'s A2U.bat, which overcomes this batch file's Unicode header problems.
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 AtFuture.bat 1.20 Schedule a command a few minutes from now in the near future NT 2008-04-22 This batch file was a coproduction with Rob Fuller
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 AVG8Ver.bat 1.00 Display any computer's AVG8 AntiVirus program and virus definitions versions W2K 2008-12-23 Requires FILEVER and REG 3.0. 
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 BattRun.bat 1.00 Display a warning message if a program is launched while the computer is running on battery power XP 2007-08-23 Requires WMIC
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 BattStat.bat 1.00 Display battery status XP 2006-10-04 Requires WMIC
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 Bin2Dec.bat   Convert binary numbers to decimal NT 2007-10-20 Requires FINDSTR from the Resource Kit for Windows NT4.
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 Bin2Dec.bat 1.00 Convert binary numbers to decimal NT 2010-07-15 Requires PHP 5.2
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 Bin2Hex.bat   Convert binary numbers to hexadecimal NT 2010-07-15 Requires PHP
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 BIOSDate.bat 1.00 Display BIOS date DOS 2003-03-09 Requires DEBUG.
Original idea by ComputerHope.
Available as Perl and Rexx scripts too
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 BIOSDate.cmd 1.00 Display BIOS date NT 2003-03-09 Requires DEBUG.
Original idea by ComputerHope.
Available as Perl and Rexx scripts too
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 BirdName.bat 0.31 Get the scientific name and several translations for a specified Dutch bird name NT 2011-12-01 Requires FINDSTR and WGetTxt.vbs
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 BkAllDrv.bat 1.06 Backup all device drivers W2K 2004-01-10 Also available as KiXtart, Perl and Rexx scripts.
These scripts all require Microsoft's DEVCON utility.
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 BootDisk.bat 1.01 Determine the boot disk, partition and drive letter XP 2012-01-07 Requires WMIC
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 BootDriv.bat   Determine which drive DOS booted from All 2006-10-26 Also available as OS/2 Rexx, Regina Rexx and VBScript scripts
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 BootIni.bat 1.00 Change boot menu timeout value in BOOT.INI to 5 seconds NT 2001-03-06 Incorrect changes to BOOT.INI may result in a system that won't boot anymore.
Use entirely at your own risk!
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 BootIni2.bat 2.01 Add /NoSerialMice switch to [Operating Systems] keys in BOOT.INI NT 2001-04-05 Incorrect changes to BOOT.INI may result in a system that won't boot anymore.
Use entirely at your own risk!
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 BootIniGUI.bat   Edit BOOT.INI's values in GUI mode NT 2001-05-12 Incorrect changes to BOOT.INI may result in a system that won't boot anymore.
Use entirely at your own risk!
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 Calendar.bat 1.00 Display a printable calendar of the specified year NT 2009-08-25 Written by Justin.
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 Capture.bat 1.00 Append a screen capture to a multi-page TIF file W2K 2008-06-27 Requires IrfanView.
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 CD-Cat.bat 1.00 Catalog your CD/DVD-ROMs All 2009-08-25 Written by Jeff Montgomery.
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 CDACTXP.bat 1.00 Show a list of all CD/DVD drives containing a disk XP 2005-11-26 Uses XP's DISKPART to determine the CD/DVD-ROM drive letters. May fail if any disk volume is labeled "CDFS".
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 CDPlayer.bat 1.00 Play audio CD's or just some tracks NT 2001-08-04 Also available as OS/2 Rexx script
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 CDROM.bat 3.00 Determine which drive letter is assigned to the CD-ROM drive 95 98 NT 2001-12-25 Also available as KiXtart, Rexx and VBScript scripts.
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 CDROMXP.bat 1.00 Determine which drive letter is assigned to the CD/DVD-ROM drive XP 2005-11-21 Uses XP's DISKPART to determine the (last) CD/DVD-ROM drive letter. May fail if any disk volume label ends with "-ROM".
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 CheckCon.bat   Check if you are connected to the internet 95 98 1999-07-13  
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 CheckDST.bat 1.00 Lists active computers that don't have automatic DST adjustment enabled. NT 2005-07-28  
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 CheckPSP.bat 1.00 List all of the specified photographs that have been edited with Paint Shop Pro W2K 2010-11-10 Requires ExifTool
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 CheckRegAccess.bat 1.00 Check if you have the required permissions on the specified registry key XP 2010-07-08 Requires WMIC
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 ChkPath.bat 1.00 Verify if all PATH entries are valid directories W2K 2008-07-17 This batch file may work in Windows NT4 too, but I didn't check
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 ChkSize.bat 1.00 Check if the actual file size matches a specified minimum size NT OS2 2000-09-23 Also available as Rexx script
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 CHMFixUNC.bat 1.00 Allow *.chm files to be opened from all currently mapped network drives W7 2010-09-27 Requires REG 3.0.
May or may not work in Windows XP and Vista (not tested)
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 Chomp.bat 1.01 Remove trailing carriage return/line feed from strings NT 2001-10-12 Loosely based on Perl's CHOMP command
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 Chr.bat 3.00 Display ASCII character(s) with the specified ASCII value(s) NT 2011-07-26 Requires either FORFILES or XP.
Based on research by "SmartGenius" and Rob Van Etta
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 CkBkSchd.bat 0.10 Display status of all Scheduled Tasks with "backup" in their names W2K 2008-06-26 Requires JT from the Resource Kit and will prompt you to download it if not found
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 CLLUN.bat 1.00 Clear Last Logon User Name: clears the last user name from the login dialog box once, or replaces it with a different name. 95 98 NT 2002-08-13 Use DDLU.bat instead if you never want the last logon user name displayed again
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 CloneDate.bat 1.11 Apply the first file's timestamp to the second file specified W2K 2005-07-28 Requires FileDate.rex and Regina REXX.
Also available in VBScript, as a single "self contained" script.
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 CloneUsr.bat 1.11 Create a new domain user account by cloning an existing account W2K 2005-08-18 Requires Windows Server 2003's DS Tools and TSCMD
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 CMOSBatt.bat 1.00 Check the CMOS battery status NT 2009-12-24 Requires DEBUG
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 CMOSDST.bat 1.00 Check if Daylight Saving Time is enabled for the CMOS clock NT 2009-12-24 Requires DEBUG
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 CnvrtUrl.bat   Convert IE Favourites to Netscape Bookmarks 95 NT 2001-04-29  
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 CompName.bat 1.01 Change the computer name 95 2003-10-12 Requires CompName.kix 1.01 and KiXtart.
This batch file is actually just a "wrapper" for the KiXtart script.
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 Cosine.bat   Calculate the cosine for the specified angle in radians NT 2010-07-15 Requires PHP
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 Cosine.bat   Calculate the cosine for the specified angle in radians NT 2010-07-16 This version uses native Windows command only.
It is, however, less accurate than the PHP version.
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 CosineDeg.bat   Calculate the cosine for the specified angle in degrees NT 2010-07-15 Requires PHP
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 Country.bat 4.00 Read the Country setting from NT's registry NT 2010-11-10 Requires REG.
Does not need temporary files.
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 Country3.bat 3.01 Read the Country setting from NT's registry NT 2009-02-08 Uses temporary files, but doesn't need the Resource Kit
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 CPULoad.bat   Display the CPU load percentage XP 2010-06-23 Requires WMIC
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 CurDrive.bat   Determine the current drive and place it in environment variable DOS6+ 2000-05-06  
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 CurDriv1.bat   Determine the current drive and place it in environment variable DOS6+ 2000-05-06 Uses Laurence Soucy's "CHOICE technique" first demonstrated in BootDrv*.
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 Cut.bat 1.00 A UNIX-like CUT utility W2K 2011-01-22  
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 DateAdd.bat 1.10 Add/subtract a specified number of days to/from a specified date NT 2007-02-12 Based on Fliegel-Van Flandern Julian date conversion algorithms from the Astronomical Almanac, provided by Doctor Fenton on the Math Forum and converted to batch code by Ron Bakowski
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 DateDiff.bat 1.10 Calculate the difference in days between two dates NT 2007-06-04 Based on Fliegel-Van Flandern Julian date conversion algorithms from the Astronomical Almanac, provided by Doctor Fenton on the Math Forum and converted to batch code by Ron Bakowski
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 DateFmt.bat 0.53 Show the current date in the specified format NT 2008-08-07 Inspired by Simon Sheppard's GetDate.bat
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 DatePart.bat 1.00 Return the specified numerical part of the current date or time NT 2008-11-15 Batch "wrapper" for VBScript's DatePart( ) function
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 DatePart.cmd 3.20 Return the specified numerical part of the current date or time XP 2013-02-26 Requires WMIC
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 DateTime   Store week day, current date and current time in environment variables All Take a look at SortDate and SortTime for an NT version with language independent sorting, or at DateErrT for a version that uses ErrTime by Phil Money to remain virtually OS independent
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 DateTime.cmd   Return the current date as errorlevel in YYYYMMDD format XP 2009-04-27 Written by Justin.
Works only in Windows XP.
Requires modifications to work on non-US systems.
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 DDLU.bat 1.00 Don't Display Last Username: clears the last user name from the login dialog box permanently. NT 2001-12-20 Use CLLUN.bat instead to remove the last logon user name just this once.
See the Related Stuff section for a note on "Don't Display Last Username" in Vista and Windows 7.
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 DeadProf.bat 1.00 Delete inactive corrupted profiles for current user NT 2000-09-15  
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 Dec2Bin.bat   Convert decimal numbers to binary NT 2010-07-15 Requires PHP
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 Dec2Hex.bat 2.10 Convert a decimal number to 8 digit hexadecimal NT 2007-12-08 This batch file uses a "poorly documented" feature of the PING command to convert a decimal number to hexadecimal.
Requires FINDSTR (not native in NT4, but part of the Resource Kit).
Also available in KiXtart, Perl, Rexx and VBScript.
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 Dec2Hex.bat   Convert decimal numbers to hexadecimal NT 2010-07-15 Requires PHP
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 DecToHex.bat 1.01 Convert a decimal number to "7.5" digit hexadecimal NT 2007-12-08 This batch file uses CMD.EXE's internal commands only.
Also available in KiXtart, Perl, Rexx and VBScript.
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 DecToHex3P.bat 1.00 Convert a decimal number to hexadecimal NT 2006-08-24 Written by Richard K. Bussey.
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 DefOpen.bat 3.00 Create a default file association to Notepad and add "Open with Notepad", "Print with Notepad" and "Command Prompt Here" options to popup menus 95 98 NT 2000 XP 2007-11-21 Based on a tip by Regedit.com.
More details on my REGEDIT page.
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 DefPRN.bat   Display default printer name NT 1999-11-07 Also available as OS/2 Rexx, Windows Rexx, JScript, KiXtart, Perl and VBScript scripts.
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 DefPRN2K.bat 1.00 Display default printer name W2K 2002-02-13 Also available as OS/2 Rexx, Windows Rexx, JScript, KiXtart, Perl and VBScript scripts.
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 DelFlash.bat 1.00 Delete "Local Stored Objects", also known as "Flash Cookies", from the current user's profile NT 2007-09-15 Tested on Windows XP SP2 only. Use entirely at your own risk!
Also available in VBScript.
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 DelOutlX.bat 0.41 Uninstall Outlook Express (BETA!) W2K 2003-12-20 Tested on 1 Windows 2000 computer only.
Use entirely at your own risk!
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 DelProf.bat 0.50 Delete specified profile (BETA!) NT 2003-12-17 Still in beta! That is why the most destructive command of the batch file is echoed only.
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 Desktop.bat 2.00 Save all desktop shortcuts as a batch file that can recreate those shortcuts again (Desktop backup) NT 2001-08-05 Requires SHORTCUT
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 DHCPScopes.bat 6.8.18 List all authorized DHCP servers on the domain and log all active scopes XP 2006-08-17 Requires NETSH.
Written by Josh Murray
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 DirComp.bat 3.21 Compare the total number of files, total file size, timestamps and contents of 2 directories NT 2010-12-16 Requires FCIV.
Uses FC to compare FCIV listings of the 2 directories, so the lines preceeding and following the detected differences will also be displayed on screen.
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 Disabled.bat 1.00 Lists all disabled user accounts NT 2000-09-21  
Click the floppy disk icon to dowload the ZIPed source   DiskFree   Check amount of free disk space, the hard way All Use FreeSpace.vbs if you need a more reliable tool
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 DiskSpc.bat 3.10 Display harddisk summary for any WMI enabled computer or for a list of computers XP 2006-10-02 Requires WMIC
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 DiskUse.bat 4.10 List the disk usage for every subdirectory NT4 2003-12-20 Returns negative numbers if total file sizes exceed 2GB.
Also available as Rexx script.
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 DiskUse.bat 5.01 List the disk usage for every subdirectory W2K 2003-12-21 Fixed negative numbers bug for Windows 2000/XP.
Also available as Rexx script.
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 DispEDID.bat 1.01 Display your monitor's EDID asset information XP 2007-02-20 Also available in VBScript
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 DllMenu.bat 1.00 Add "Register" and "Unregister" to Explorer's context menu for DLLs and OCXs W2K 2007-04-18  
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 dNFxVer.bat 1.01 List the installed .NET Framework versions W2K 2010-08-26 Requires GetUnins.vbs.
Windows 2000 and XP only.
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 DNSServers.bat 1.00 List the configured DNS servers for each network adapter XP 2011-11-17 Requires WMIC
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 DriveRdy.bat   Check if (removable) drive is ready DOS6+ OS2 1999-07-18 Also available as OS/2 Rexx script
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 Drives.bat 2.01 List drive letters and types XP 2012-04-20 Requires WMIC
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 DrivesXPHome.bat 1.01 List local drive letters and types W2K 2003-12-17 This version is for Windows 2000 and XP Home only.
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 DrivUsed.bat 1.00 List used and available drive letters XP 2007-12-30  
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 DxSound.bat 1.00 List selected DirectX properties for all sound devices XP 2011-09-23 Requires DxDiag.exe (native) and XML Starlet
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 DxVideo.bat 1.01 List selected DirectX properties for all video cards/monitors XP 2011-09-23 Requires DxDiag.exe (native) and XML Starlet
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 Easter.bat 3.00 Calculate dates for Easter Day, Ascension Day and Pentecost for any year NT 2010-11-29 Easter Day calculation based on the instructions found at Simon Kershaw's "KEEPING THE FEAST, A companion to the Holy Days of the Calendar 2000".
Julian date math based on Fliegel-Van Flandern algorithm from the Astronomical Almanac, provided by Doctor Fenton on the Math Forum, and converted to batch code by Ron Bakowski.
Also available as KiXtart, Perl, Rexx or VBScript script.
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 EasterPHP.bat 1.01 Calculate Easter date for the current or specified year NT 2011-12-29 Requires PHP
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 Edit.bat 1.10 Open the specified file in the editor registered for its file type XP 2012-03-19  
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 E-mail   Send batch file generated e-mail messages NT 2000-01-15  
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 ErrLevel.bat   Show errorlevel of previous command All 1999-07-18  
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 ErrorMsg.bat 2.00 List all error messages known by the NET HELPMSG command NT 2014-08-22  
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 EXIFInfo.bat 0.51 BETA Return the requested EXIF value for the specified file(s) W2K 2012-09-30  
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 Expires.bat 1.00 Lists all user accounts that have "Password expires" set to "Never" NT 2000-09-21  
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 ExpPrnDr.bat 1.01 Export Printer Drivers W2K 2009-12-20 Requires DEVCON
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 FaR.bat 1.00 Find And Replace substrings in a string All 2001-07-15 Requires FaR.kix and KiXtart.
Also available in Perl and Rexx
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 FeazBkup.bat   Backup Fileaze jobs NT 2006-12-22  
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 FfxCAC.bat 1.10 Delete all files from all Firefox caches in all profiles XP 2010-09-23  
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 FfxCache.bat 1.10 Delete all files from the Firefox cache in your profile XP 2010-09-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 FileSys.bat 4.00 Check file system type of specified drive NT 2002-01-08 NTFS test inspired by a post from Mark Stang on alt.msdos.batch.nt
Also available as OS/2 Rexx script
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 FileVer.bat 1.00 Display the specified program file's version number NT 2003-05-26 Requires STRINGS
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 FlopDOS.bat 1.00 Display the installed floppy drives DOS 2009-01-22 Requires DEBUG
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 Floppy.bat 1.01 Display the installed floppy drives NT 2009-01-20 Requires DEBUG
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 FlushBin.bat 1.00 Flush IE cache, temp files, ChkDsk files and Recycle Bin XP 2008-06-29 Uses CLEANMGR.EXE.
Highly experimental, use at your own risk.
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 FlushFxC.bat 1.00 Flush Firefox's cache in the current user's Windows profile NT 2008-03-28 Careful: if you use this batch file without closing Firefox, you may need to manually purge Firefox's cache to reenable display of pictures in web pages: Tools menu, Options, Privacy tab, Clear Now button, deselect everything but Cache, OK button
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 ForceCAD.bat   Force the use of Ctrl+Alt+Del to login. XP 2009-08-18 See the Related Stuff section for a note on "Force Ctrl+Alt+DEL" in Vista and Windows 7.
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 ForShare   This example of FOR's /D parameter restores or removes the shares on all home directories on an NT server. NT 2000-10-17  
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 Foto2Web.bat 1.10 Create all files necessary to publish your photographs on the web NT 2007-10-26 Requires IrfanView.
Use the diskette icon at the left to download the ZIPped archive that includes the navigation buttons (GIFs).
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 FPMath.bat   Command line floating point calculator NT 2010-07-16 Requires PHP
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 FreeDriveLetter.bat 3.00 List free drive letters W2K 2008-12-10 Requires MOUNTVOL.
Written by Jacopo Lazzari.
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 FtpDir 1.01 Show directory of remote FTP site NT 2001-11-23  
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 GetAllUserDetails.bat 1.00 List details of all user account W2K 2006-09-13 Requires GetUserDetails.bat.
Written by Florian Dörr.
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 GetCDROMDrives.bat 1.00 List all CDROM drives for the local computer W7 2010-09-06 Requires REG 6.1. 
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 GetCDROMDrivesXP.bat 1.10 List all CDROM drives for the local computer XP 2010-09-06 Requires REG 3.0. 
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 GetDevDJ.bat 1.00 Check if a HP DeskJet printer driver is installed NT 2002-03-30 Requires DEVCON.
Tip by Eric Krause
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 GetDevLT.bat 1.00 Check if a Logitech mouse driver is installed NT 2002-03-30 Requires DEVCON.
Tip by Eric Krause
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 GetDevSB.bat 1.00 Check if a Creative Sound Blaster driver is installed NT 2002-03-30 Requires DEVCON.
Tip by Eric Krause
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 GetFlashDrives.bat 1.00 List all removable "flash" drives for the local computer W7 2010-09-06 Requires REG 6.1. 
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 GetFlashDrivesXP.bat 1.00 List all removable "flash" drives for the local computer XP 2010-09-15 Requires REG 3.0. 
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 GetID.bat 1.02 Search and display login and full names based on part of a user's full name (fails on migrated NT4 user accounts) W2K3 2004-08-06 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 GetIP.cmd 3.00 Show PC's IP address (both Windows NT/2000/XP and OS/2 Warp/eCS) NT OS2 2002-02-09  
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 GetIP98.bat 1.00 Show PC's IP address (Windows 98) 98 2001-02-16  
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 GetLastDrive.bat 1.00 Return the last ("highest") drive letter used on the local computer W7 2010-09-06 Requires REG 6.1. 
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 GetLastDriveXP.bat 1.00 Return the last ("highest") drive letter used on the local computer XP 2010-09-16 Requires REG 3.0. 
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 GetMacXP.bat 1.00 Show MAC address of any computer in the workgroup or domain NT 2006-09-06  
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 GetPorts.bat 2.12 Show I/O addresses for serial and parallel ports All 1999-10-16 Also available as Perl script
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 GetPrn.bat 1.01 Display default printer for current user and list all printers for local system. NT 2001-03-08 Requires REG 1.0 or 2.0.
Works on NetBIOS/LAN Manager networks.
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 GetPrn2.bat 1.00 Display default printer for current user and list all printers for local system. NT 2001-03-08 Requires REG 1.0 or 2.0.
Works on "real" NT networks.
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 GetRAM.bat 1.10 Show the amount of RAM in MB NT 2001-07-17 Use Memory.bat if more speed is required.
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 GetRAM.bat 2.00 Show the amount of RAM in MB W2K 2002-05-05 Use Memory.bat if more speed is required.
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 GetRes.bat 1.00 Show display resolution and refresh rate NT 2001-09-09 Requires REG 1.0 or 2.0.
Also available as OS/2 Rexx script.
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 GetRes.bat 2.00 Show display resolution and refresh rate NT4 2001-09-09 Also available as OS/2 Rexx script.
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 GetRes.bat 3.00 Show display resolution and refresh rate NT 2002-11-04 Also available as OS/2 Rexx script.
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 GetRes.bat 4.00 Show display resolution and refresh rate XP 2007-05-22 Also available as OS/2 Rexx script.
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 GetUninstall.bat 2.00 Find the uninstall command(s) for the specified program WV 2012-02-01 Also available as VBScript script.
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 GetUserDetails.bat 1.00 List details of the specified user account W2K 2006-09-13 Written by Florian Dörr.
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 GifList.bat   Display all GIF files in your web browser All 1999-03-21 Consists of 3 interdependent batch files
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 GrMember.bat 0.53 Displays the members of the specified group(s). W2K 2005-04-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 Groundhog.bat 1.00 Temporarily changes the date and then runs the specified command NT 2004-09-29 Written by Bruno Mota
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 GUIEnvironment.bat   Edit NT's environment values in GUI mode NT 2001-05-12 Incorrect changes to NT's environment may cause serious system software malfunctions. Use entirely at your own risk!
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 HardDisk.bat 1.00 List harddisks, their interfaces and revision numbers for any computer on the network NT 2005-01-15 Requires DEVCON.
The script will prompt you to download DEVCON if it isn't found.
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 Hardware.bat 1.00 Uses BATCHMAN to display a basic hardware summary DOS3 2002-12-02 Requires BATCHMAN.
More advanced versions available as XP batch file, HTA, KiXtart and VBScript scripts for Windows.
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 Hardware.bat 3.10 Uses WMIC to display a basic hardware summary XP 2006-10-03 Requires WMIC.
Also available as MS-DOS batch file, HTA, KiXtart and VBScript scripts for Windows.
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 Hex2Bin.bat   Convert hexadecimal numbers to binary NT 2010-07-15 Requires PHP
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 Hex2Dec.bat   Convert hexadecimal numbers to decimal NT 2010-07-15 Requires PHP
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 History.bat 1.00 Create or delete "Internet History" folder on your desktop 95 98 NT (IE 4/5) 2001-06-26 Based on an article by Nick Francesco.
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 HostName.bat 1.00 Display host name for specified IP address NT OS2 2000-06-04 Version 1.00 shows the host name for a specified IP address.
Available as Rexx script for OS/2 as well.
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 HostName.bat 2.00 Display host name for specified IP address NT4 2001-04-21 Version 2.00 not only shows the host name for a specified IP address, but the Mac address, NetBIOS name and domain or workgroup too.
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 Hotfixes.bat 2.00 Display a list of hotfixes installed locally NT 2002-11-24 Also available as KiXtart and VBScript scripts.
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 1.00 Make Internet Explorer automatically sort its favorites W2K 2005-02-17  
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 3.00 Log Internet Explorer version NT 2010-11-09 Requires REG
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 1.00 Show Event Log entries concerning invalid share names NT 2000-06-05 Requires DUMPEL
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 1.10 Display remote computer and user info NT 2003-10-25 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 is6432os.bat 1.00 Check if a Windows is 32-bit or 64-bit XP 2010-08-01 Requires WMIC.
Also available in VBScript and C#.
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 IsDate.bat 1.02 Checks the validity of the specified date W2K 2011-05-05  
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 1999-12-06 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 IsDST.bat 1.03 Check if the current or specified date/time is in Daylight saving Time XP 2011-04-12 Requires WMIC.
Requires permission to change the system date (will do so up to 65 times).
Do not use on computers that are member of a domain.
Use entirely at your own risk.
VBScript and C# versions are safer to use.
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 1.00 Check if specified drive is FAT formated or not NT 2001-02-15 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 1.00 Check if specified value is numeric or not NT 2008-01-11 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 1.00 Check if the CMOS Real Time Clock is set, and return an errorlevel greater than 0 if not NT 2009-01-24 Requires DEBUG
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 JTHelp.bat 1.01 Create a HTML help file for Microsoft's JT command NT 2005-03-05 This batch file generates an HTML file and several associated text files. Start this batch file in an empty directory to keep track of all files.
JT.EXE is part of the Microsoft Windows 2000 Resource Kit and can be downloaded here
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 KeyLocks.bat 1.20 Return the status of the CapsLock, NumLock and ScrollLock keys NT 2007-12-17 Requires DEBUG.
Also available in Perl as KeyLocks.pl and in VBScript as CapsLock.vbs (CapsLock status only, and uses MS Word or WordPerfect instead of DEBUG).
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 KillDisc.bat 2.10 Logoff disconnected Windows NT 4 Terminal Server ICA clients TS 2001-02-17  
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 KillNtPr.bat 2.11 Kill an NT process, specified by its program name and extension (no path) NT 2001-03-14 Requires TLIST and KILL (NT4), PSLIST and PSKILL (NT4/W2K) or TASKLIST and TASKKILL (XP).
Also available as OS/2 Rexx script
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 KixAssoc.bat 2.00 Associates the .KIX extension with the KIX32 executable.
After executing this batch file once, you can call any *.KIX directly, without the need to "prefix" it with KIX32.EXE.
NT 2000-09-19 With SET PATHEXT=.KIX;%PATHEXT% (better yet: set it as a global variable in Control Panel, System applet) you won't need to type the .KIX extension to run .KIX scripts.
Adapt the (hard coded) path for KIX32.EXE to your own situation.
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 KixMacro.kix 2.00 This KiXtart script makes the KiXtart macro commands available for batch files. Usage:

  KIX32 KIXMACRO.KIX $KIXMACRO=@macro [$VarName=env_var]
  CALL %TEMP%.\_KIXMACRO.BAT


Where @macro can be any valid KiXtart macro. The result is stored in the environment variable env_var
All 2001-06-23 Requires KiXtart
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 LastBoot.bat 1.01 Display the last boot time of any WMI enabled computer XP 2010-02-10 Requires WMIC
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 LastFile.bat 1.00 Reopen most recently used file from the Documents folder NT 2001-10-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 LastWUpd.bat 1.00 Return date and time of the last successful Windows Update XP 2009-09-11  
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 LDIF2vCard.bat 0.11 alfa Very basic LDIF to vCard converter XP 2013-11-28 Fails on unescaped ampersands.
May require some manual editing after conversion: e-mail addresses and phone numbers should always be preceded with either WORK: or HOME: or PREF: and sometimes these prefixes are swapped or left out.
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 LeapYear.bat 2.00 Check if the current year is a leap year or not DOS 2002-12-16 Requires BATCHMAN.
Also available as JScript, KiXtart, Perl, PowerShell, Rexx and VBScript scripts.
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 LeapYear.bat 1.01 Check if the specified year is a leap year or not NT 2002-10-05 Uses code to extract current year by Simon Sheppard.
Also available as JScript, KiXtart, Perl, PowerShell, Rexx and VBScript scripts.
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 ListADComputers.bat 1.00 List computer objects in Active Directory XP 2013-10-20 Requires DSQUERY
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 ListDHCP.bat 1.00 List the DHCP server for every network adapter XP 2010-07-25 Uses NETSH
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 ListHDDs.bat 1.11 List all physical harddisk models on a remote PC W2K 2009-12-02 Requires WMIC or DEVCON.
If neither WMIC nor DEVCON is available, you will be prompted to open the DEVCON download page.
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 ListFilesBetween.bat 1.02 List matching files with timestamps between 2 specified dates NT 2011-11-12  
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 ListICA.bat 1.00 List all IP addresses associated with Citrix' ICA round robin alias in DNS NT 2004-10-25  
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 ListPRN.cmd 2.01 List specified (NT) or all (NT and OS/2) network printers' UNC path NT OS2 2000-06-05 Bonus C# source and compiled EXE included with ZIPed sources
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 ListSDKs.bat 1.00 List installed Microsoft SDKs, or display the version number for a specified SDK XP 2008-05-30 Requires REG 3.0. 
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 ListWMIClasses.bat 1.01 List (a tiny fraction of the) available WMI classes in the "root\CIMV2" namespace XP 2010-09-29 Requires WMIC.
Also available in VBScript
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 LoCase.bat 3.00 Convert filenames to all lowercase NT OS2 2001-11-20 New LoCase.bat uses a trick by Niels Stout; it is much faster, but can be used in the current directory only; the old version is still available in case you need to rename files in other directories.
Also available as KiXtart and OS/2 Rexx scripts.
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 LockProg   How to lock single user programs when in use on a network All 1999-07-13  
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 LogBatch.bat 1.00 Log every individual command line of a batch file W2K 2007-11-07  
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 LogHist.bat 1.11 Read URLs from IE history and write them to a file named %UserName%.hst NT 2003-10-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 LstOffVw.bat 1.00 List all Office Viewers and their version numbers W2K 2008-05-17 Also available in VBScript.
This batch file uses FILEVER.EXE and is about 10 times as fast as the WMI/VBScript version.
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 MacAddress   Find the MacAddress of your network adapter 95 98 NT OS2 2002-12-07  
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 MakeTemp.bat 2.10 Create a temporary file with a more or less random unique name NT 2011-11-17  
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 Manage.bat 1.00 Open a remote Computer Management Console W2K 2005-09-26  
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 Max.bat 1.00 Returns the highest from a list of values on the command line NT 2011-04-10  
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 MD5.bat   Calculate the MD5 checksum for the specified string NT 2010-07-15 Requires PHP
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 MdmCmds.bat 1.00 Display the available configuration commands for your modem(s) XP 2006-10-12 Requires WMIC
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 MemberOf.bat 2.01 (Recursively) list all groups of which the specified user is a member. W2K 2011-07-19 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 Memory.bat 1.01 Show the amount of RAM in MB NT 2001-04-29 Requires PSTAT.
Use GetRAM.bat instead if you do not have the NT Resource Kit available
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 MergePDFs.bat 1.00 Merge multiple PDF files into a single new one NT 2012-05-01 Requires PDFTK
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 MidiTitl.bat 1.01 Display titles of specified MIDI files NT 2004-01-20 Requires STRINGS.
Also available as Perl script.
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 Min.bat 1.00 Returns the lowest from a list of values on the command line NT 2011-04-10  
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 Modems.bat 1.01 List all modems installed on the computer W2K 2003-12-23 Requires DEVCON
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 Modified   Check if a file was created or modified today All 1999-09-30 Separate version for NT and OS/2 (*.CMD instead of *.BAT)
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 MovePictures.bat 1.00 Move photographs from a camera to a folder with the date in its name NT 2005-01-30 Written by Gordon Schumacher
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 MSIInfo.bat 1.00 Find and run the latest installed version of MsiInfo.exe NT 2010-10-11 Requires the Windows SDK
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 MTUTest.bat 1.00 Check if the current MTU setting is optimal W7 2014-08-01 Based on a tutorial by Harrison Fleetwood.
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 Multiply.cmd 1.2 Multiply really big numbers (beyond Windows' 32-bit integer limits) NT 2011-05-14 Written by Brian Williams
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 MVol-E.bat 2.1 Remount any PHYSICAL volume from the letter E: to the first available letter R:, T:, V: or X: XP 2006-01-01 Requires MOUNTVOL.
Written by Jos van der Esch
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 MyAccess.bat 1.10 Check the current user's permissions for the specified resource W2K 2004-01-18 Requires MYTOKEN
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 MyPRN.bat 1.00 List all printers and printer drivers installed on the local PC NT 2002-01-12 Bonus C# source and compiled EXE included with ZIPed sources
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 MyPRN2K.bat 1.00 List all printers and their properties, and save the results in a tab delimited file W2K 2003-12-16  
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 NETFxVer.bat 3.00 List the installed .NET Framework versions W2K 2010-08-27  
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 NetSetFR.bat   Store the Computer name, User name and Workgroup in environment variables 98 2000-11-01 For French Windows 9x versions.
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 NetSetNL.bat   Store the Computer name, User name and Workgroup in environment variables 98 2000-11-01 For Dutch Windows 9x versions.
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 NetSetUS.bat   Store the Computer name, User name and Workgroup in environment variables 98 2000-11-01 For English Windows 9x versions.
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 NETSHHelp.bat 1.00 Display help for NETSH and all its subcontexts W7 2014-01-24 For English Windows 7 versions.
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 NetStatLive.bat 1.00 Netstat Live alternative NT 2004-01-01 Written by Shannon Zielinski
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 NetWho.bat 2.10 NET WHO (as in OS/2) "ported" to NT: show every requester plus who is logged on NT 2002-06-20 NetWho.bat assumes requester names are in PC1234 format (to ignore servers).
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 NetWho2.bat 2.10 NET WHO (as in OS/2) "ported" to NT: show every requester plus who is logged on NT 2002-06-20 NetWho2.bat may also show servers.
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 NICSpeed.bat 1.00 Display all active Ethernet network adapters' link speed XP 2010-09-16 Requires WMIC.
Also available in KiXtart and VBScript
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 NoAutoRun.bat 1.00 Completely disable Windows' AutoRun feature XP 2007-11-11 Based on an article by Scott Dunn
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 NoBrowse.bat 1.00 Prevent the local workstation from becoming a master browser NT 2002-03-14  
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 NoNagXP.bat 1.00 Disable nag screens for .NET Passport and Windows XP Pro Tour XP 2005-06-28 Idea: Greg Schultz's xpnagdisabler VBScripts on techrepublic.com.com
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 NoTrkIco.bat 1.00 Disable "smart shortcut tracking" on the local PC W2K 2002-04-16 Based on a tip by Sander Jousma.
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 Now.bat 1.00 Display the current time in HHmmss format with any delimiter you want NT 2009-01-19 Requires DEBUG
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 NoWinUpd.bat 1.00 Disable Windows' Update feature 95 NT 2002-04-10 Also available as KiXtart script.
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 NTRole.bat 1.10 Displays the role (server or workstation) of the PC where this batch file is run NT 2001-11-18  
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 Num2Bin.bat 1.00 Convert the specified number to binary NT 2011-03-01  
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 Num2Hex.bat 1.00 Convert the specified number to binary NT 2011-03-13  
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 Num2Oct.bat 1.01 Convert the specified number to octal NT 2011-03-13  
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 NumLock.bat 1.00 Display or change default NumLock status for current user NT 2003-03-27  
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  
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 PadDemo.bat   Demo batch file for LeftPad and RightPad subroutines, both written to format strings to be displayed in colums on screen NT 2007-03-09 Also available in VBScript
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 PausePrinting.bat 1.00 Pause printing on the specified printer XP 2010-07-11 Requires WMIC.
Use ResumePrinting.bat to resume printing again.
Also available in VBScript
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 PCName.bat 1.00 Store computer name in environment variable. 95 2002-03-06 This batch file stores the computer name without leading backslashes, as opposed to the NETSETxx.BAT batch files.
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 PDFPageCount.bat 1.01 Display the page count for the specified PDF file(s). NT 2011-10-11 Requires FINDSTR
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 Pictures.bat 1.00 Display all GIF and JPG files in your web browser All 1999-03-21 Requires Picture2.bat 1.00 and Picture3.bat 1.00.
Set of 3 interdependent batch files for MS-DOS.
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 Pict_NT.bat 1.03 Display all GIF, JPG and PNG files in your default web browser NT 2010-09-19 This NT version is one single batch file
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 PMChoice.bat 2.00 Replacement for the CHOICE command NT 2003-10-09 Requires PMChoice.kix and KiXtart
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 PMSleep.bat 3.00 Wait for a specified number of seconds NT 2013-03-21 A "clone" of the NT4 Server Resource Kit's SLEEP command using NT's native PING command only.
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 PMSlpW9x.bat 2.10 Wait for a specified number of seconds 95 2004-07-23 A "clone" of the NT4 Server Resource Kit's SLEEP command using NT's native PING command only.
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 PMSoon.bat 1.01 Schedule at relative times instead of absolute times NT 2001-02-17 A "clone" of the NT4 Server Resource Kit's SOON command using NT's native NET TIME and AT commands only.
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 PrintAny.bat 2.01 Print any known file type from batch files W7 2014-04-02 More details on my Print Files page.
Also available as Print.vbs and PrintAny.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 PrintDoc.bat 1.00 Use Word to print Word documents from the command line W2K 2008-11-29 Requires CMCDDE and Microsoft Word.
More details on my Print Files page.
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 PrintHTM.bat 1.11 Print HTML files from batch files (with printer dialog) NT 2002-03-31 More details on my Print Files page.
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 PrintHTM.bat 2.00 Print HTML files from batch files (without user interaction, to any printer) NT 2002-02-09 Requires KiXtart.
More details on my Print Files page.
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 Printing.bat 2.20 List printer status and number of printjobs, pause or resume printing, or flush all printjobs on the selected printer(s) XP 2010-09-14 Requires WMIC.
Also available in C# and VBScript.
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 PrintPDF.bat 3.11 Print PDF files from batch files NT 2007-10-19 More details on my Print Files page.
Also available as KiXtart, Perl, Rexx and VBScript scripts.
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 PrintPPT.bat 1.00 Open a print dialog for a specified PowerPoint file NT 2008-06-11 Requires PowerPoint 2003 or 2007 or PowerPoint Viewer
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 PrnPDF8.bat 1.00 Print a PDF file to any printer XP 2008-06-14 Requires Foxit Reader 2 or Adobe Reader 8. 
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 PrnPDF9.bat 1.00 Print a PDF file to any printer XP 2009-08-12 Requires Foxit Reader 3 or Adobe Reader 9
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 ProdID.bat 1.00 Display Windows' Product ID and store it in an environment variable "ProductID" NT 2002-03-31 Also available as KiXtart and VBScript scripts.
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 ProgressMeter.bat 1.00 Display a progress bar in the current CMD.EXE's title bar NT 2007-01-10 Written by Roy Holt.
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 PwdNoExp.bat 1.00 Set "password never expires" for a local account XP 2008-03-12 Requires WMIC.
Also available in VBScript.
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 Random.bat 1.00 Generate random numbers DOS 2000-07-07 Works only with comma as decimal delimiter; fixed in 2.00.
In OS/2 Rexx or KiXtart only one single line is needed to generate random numbers, Perl needs 2 lines.
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 Random.bat 2.00 Generate random numbers DOS 2000-07-07 In OS/2 Rexx or KiXtart only one single line is needed to generate random numbers, Perl needs 2 lines.
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 Random.bat 1.00 Generate random numbers NT 2003-08-08 Depends on US language settings.
In OS/2 Rexx or KiXtart only one single line is needed to generate random numbers, Perl needs 2 lines.
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 Random.bat 2.00 Generate random numbers NT 2003-08-08 Language independent.
In OS/2 Rexx or KiXtart only one single line is needed to generate random numbers, Perl needs 2 lines.
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 RC.bat 2.11 Display the errorlevel returned by the specified command and the time it took NT 2012-07-02  
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 ReadINI.bat 1.30 Read a value from an INI file NT 2007-07-31 May fail on "special" characters like & | < > and parentheses.
In version 1.20 the speed of processing has been improved by Jeroen Verschuuren.
Version 1.30 contains several improvements by Van Woods, US Army Corps of Engineers, Seattle District.
READINI is also available as KiXtart, Perl, Rexx and and VBScript scripts.
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 ReadLine.bat 1.00 Read the specified line(s) from standard input and store it in an environment variable W2K 2011-01-19 Skips empty lines.
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 ReadReg.bat 2.10 Read a value from the registry NT 2004-10-25 Requires EGREP or FINDSTR.
May fail on "special" characters like & | < > and brackets.
Uses FINDSTR if available, or EGREP otherwise.
Also available as KiXtart, Perl, Rexx and VBScript scripts.
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 ReadXML.bat 1.10 Read a value from an XML file NT 2011-02-06 Requires XML Starlet
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 Recycled.bat 1.00 Create or delete a shortcut to the "Recycle Bin" in your Start Menu NT 2001-09-22 The shortcut does not give you the same functionality as the original Recycle Bin, but it can be used to quickly check the properties of deleted files.
Tested in NT 4 only.
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 RegDLL.bat 1.01 Add Explorer menu entries to register/unregister DLLs W2K 2004-01-05 Based on an article on The Code Project website
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 RemMacro 1.00 Use McAfee VirusScan to remove all macro's from MS-Office documents 95 NT 2002-03-15  
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 RemoteSID.bat 2.11 Shows who is logged on to a remote computer, displaying both user ID and Security ID (SID). NT 2001-11-15 Requires GETSID and PSLOGGEDON
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 Removables.bat 5.0c Display mounted removable devices W2K 2008-07-27 Written by Carlito S.
Does not require administrator privileges.
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 RenewUSB 1.00 Remove all USB devices and then rescan for new ones W2K 2004-06-11 Requires DEVCON.
You will be prompted for download if DEVCON isn't found.
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 RestHome   Use NT's FOR /D parameter to restore a server's home directory shares and access rights NT 2000-10-17 Also available as Rexx scripts for OS/2 LAN Server; or use ForD as a FOR /D replacement in OS/2 batch files
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 ResumePrinting.bat 1.00 Resume printing on the specified printer XP 2010-07-11 Requires WMIC.
Use PausePrinting.bat to pause printing.
Also available in VBScript
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 Reverse.bat 2.00 Return a string in reverse order NT 2001-08-05 See Tom Lavedas' User-to-User article for a DOS version using CHOICE.
Rexx has a built-in REVERSE() function
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 RmHidDev.bat 1.00 Remove all hidden (inactive) Plug&Play devices W2K 2006-11-10 Requires DEVCON.
Written to remove "ghost devices" from Ghost images.
You will be prompted for download if DEVCON isn't found.
Warning: May cripple your OS, use entirely at your own risk, and only after making a full backup.
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 RmUserID.bat 0.52 Delete a user account and the associated data and share W2K 2004-10-23 Requires Windows Server 2003's DS Tools, RMTSHARE, TAKEOWN, TSCMD and OWN.BAT
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 RoboMove.bat 0.20 beta Moves files in target folder to match source folder as closely as possible, to make following ROBOCOPY process more efficient W2K 2012-01-05 Best used together with ROBOCOPY.
Warning: beta version, not tested rigorously yet.
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 RunBackupWithoutSleep.bat 1.20 Run a backup, defrag or any other long task without the computer going to sleep W7 2012-10-15  
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 RxAssoc.bat 2.00 Associates the REX extension with Regina Rexx executable. After executing this batch file once, you can call any *.REX directly, without the need to precede it with REXX.EXE. NT 2000-02-11 With SET PATHEXT=.REX;%PATHEXT% (better yet: set it as a global variable in Control Panel, System) you won't need to type the .REX extension to run .REX scripts.
Adapt the (hard coded) path for REXX.EXE to your own situation.
Better still, use REGINA.EXE instead of REXX.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 RXDir.bat 0.50 Use Regular eXpressions in the DIR command NT 2004-10-16 Requires EGREP
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 SAVVer.bat 1.00 Display any computer's Symantec AntiVirus program and virus definitions versions W2K 2008-12-23 Requires FILEVER
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 Scheduld.bat 1.00 List all scheduled task and their main properties W2K 2003-11-19 Requires STRINGS
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 SCList.bat   List the properties of all shortcuts on an NT machine NT 1999-10-01 Requires SHORTCUT
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 Screen.bat   Demo: different ways to display text NT 1999-11-03 Also available as OS/2 Rexx script
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 ScrnRes.bat 1.02 Change remote PC's screen resolution NT 2004-08-25 Requires PSEXEC and Resolution Changer
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 ScrnSavr.bat   Install a Windows screensaver and open Control Panel's screensaver settings page 95 98 NT 1999-10-23  
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 ScrSzDOS.bat 1.00 Save current screen size (lines and columns) in environment variables DOS 2002-03-17  
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 ScrSzNT.bat 1.00 Save current screen size (lines and columns) in environment variables NT 2002-03-17  
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 SCSI.bat 1.10 Enumerate disk drives (IDE and SCSI) NT 2006-09-11 Requires EGREP.
Also available in KiXtart and Rexx.
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 SCSI.bat 2.10 Enumerate disk drives (IDE and SCSI) W2K 2006-09-11 Also available in KiXtart and Rexx.
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 SecLogin.bat 1.00 Make Windows XP's logon more secure by using the "classic" login dialog instead of the welcome screen, disabling the display of the last user name at logon, and requiring Ctrl+Alt+Del to logon. XP 2009-08-19 See the Related Stuff section for a note on "Force Ctrl+Alt+DEL" and "Don't display last user name" in Vista and Windows 7.
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 SecStat.bat 2.20 Display a SecurityCenter status overview XP 2010-01-18 Requires Windows XP Professional SP2 or SP3.
Use WBEMTEST.EXE to find all properties for a specific AntiVirus or Firewall product.
Also available in KiXtart and VBScript.
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 Servers.bat 2.02 Display size, free space and used space (both in MB and as a percentage of disk size) for every partition on every server. NT 2001-05-24 Requires SRVINFO.
Also available in Rexx and VBScript as FreeSpace.*
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 SetOwn.bat 1.00 Restore ownership and permissions for roaming (TS) profile directories. W2K3 2005-07-02 Requires CHOWN, TSCMD, XCACLS and NLTEST.
You will be prompted for download if any of the required (third party) tools is not available.
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 SetWallp.bat 1.00 Make the specified file Windows' wallpaper W2K 2007-01-30 Use Wallpapr.bat to use a random bitmap as wallpaper.
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 SFN.bat 1.00 Display the Short File Name NT4 2003-11-10 Inspired by a tip from Denis Rouleau.
Based on the assumption that time is displayed in 24 hour format; increase "tokens" by 1 on systems with AM/PM time format.
This batch file is obsolete by now; in Windows 2000 SP4 and later use %%~sA or %~s1 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 SHA1.bat   Calculate the SHA1 checksum for the specified string NT 2010-07-15 Requires PHP
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 ShareMig.bat 1.00 Migrate all non-printer shares from one server to another. W2K 2005-11-02 Must be run on the server, fails on share names containing spaces, but is "universal" for both Windows 2000 and Windows Server 2003.
For printer migration, read the Printing section of my Unattended Installations page, for Scheduled Tasks migration, read the Scheduled Tasks section.
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 ShareMg2.bat 2.00 Migrate all non-printer shares from one server to another. W2K 2005-11-02 Requires ShareMg2.vbs 2.00.
Requires manual modifications for Windows 2000, but it can be run from any computer in the domain and it won't fail on share names containing spaces.
For printer migration, read the Printing section of my Unattended Installations page, for Scheduled Tasks migration, read the Scheduled Tasks section.
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 ShDsktop.bat 1.00 Restore the Show Desktop shortcut in the Quick Launch tray W2K 2003-06-10  
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 Shortcut.bat 2.10 List the (UNC and fully qualified) path that shortcuts point to NT 2005-07-11 Use SCList.bat if you need all properties, not just the path (requires the NT Resource Kit)
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 ShortExt.bat 1.00 Display or modify "extension truncation" registry setting NT 2002-03-02 Based on a tip from the Windows Registry Guide
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 ShowPRN.bat 1.00 Display all physical printers W2K 2004-01-17 Requires DEVCON.
Also available as VBScript script.
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 ShowPRNT.bat 1.00 Display all physical printers in tab delimited format W2K 2004-01-17 Requires DEVCON.
Also available as VBScript script.
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 Shuffle.bat 1.00 Shuffle the order of the lines in a text file NT 2011-03-14 Written by Jiri Hofreiter.
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 SID2User.bat 1.00 Return the SID for the specified user ID XP 2010-07-26 Requires WMIC.
Also available in VBScript.
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 SimpleSitemap.bat 1.10 Create a basic sitemap.org compliant sitemap W2K 2010-09-03 Much faster than Sitemap.bat, but limited to (all) PHP and HTM(L) files in a single folder.
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 Sine.bat   Calculate the sine for the specified angle in radians NT 2010-07-15 Requires PHP
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 SineDeg.bat   Calculate the sine for the specified angle in degrees NT 2010-07-15 Requires PHP
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 Sitemap.bat 1.00 Create a basic sitemap.org compliant sitemap W2K 2009-02-17 Slower than SimpleSitemap.bat, but supports exclude list and multiple folders and filespecs.
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 SNDisk4.bat 1.00 Save a full computer inventory in XML format NT 2010-12-27 Requires IBM's EGatherer2 2.51
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 SortDate.bat 5.01 Store "sorted" date (YYYYMMDD) in a variable, independent of Control Panel's "Regional Settings" All 2010-07-10 Take a look at DateTime for a "real DOS" version.
Much simpler in KiXtart, Perl, Rexx or VBScript.
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 SortTime.bat 3.40 Store "sorted" time (HHmm) in a variable, independent of Control Panel's "Regional Settings" All 2010-07-10 Take a look at DateTime for a "real DOS" version.
Much simpler in KiXtart, Perl, Rexx or VBScript.
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 Spider.bat 0.22 Display the validity of hyperlinks in a group of locally stored HTML files NT 2005-11-12 Requires WGET and CUT
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 SrvSpace.bat 1.12 Display free space for every partition on every server. TAB delimited screen output for easy export of output. NT 2000-06-05 For Windows XP use DiskSpc.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 StarDate.bat 1.00 Convert current date and time to stardate NT 2003-01-26 Based on an algorithm found on The Star Trek Gallery.
Also available as KiXtart, Perl, Rexx and VBScript scripts.
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 StarDateXP.bat 2.00 Convert current date and time to stardate XP 2011-06-21 Requires WMIC.
Based on an algorithm found on The Star Trek Gallery.
Also available as KiXtart, Perl, Rexx and VBScript scripts.
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 StartHow.bat 1.00 Display the actual command issued when a file is opened with the START command NT 2010-07-06 Some programs (e.g. UltraEdit) may override the shown file association
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 SwitchRes.bat 1.00 Toggle a Netbook's screen resolution from 1024x600 to 1024x768 vv. W7 2012-11-12 Requires SetRes and WMIC
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 SysBkup.bat   Run a SystemState Backup W2K 2007-02-10 Requires NTBackup
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 Tangent.bat   Calculate the tangent for the specified angle in radians NT 2010-07-15 Requires PHP
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 TangentDeg.bat   Calculate the tangent for the specified angle in degrees NT 2010-07-15 Requires PHP
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 TaskMgr.bat 1.00 Disable or reenable task manager NT 2002-03-15  
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 Tee 2.11 Display standard input on screen and simultaneously redirect it to a file NT 2009-04-17 Explained (a little) on my TEE page.
Also available as Perl and Rexx scripts
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 TempNWD.bat 1.00 Temporarily map a network drive or use an existing mapping, and remove it afterwards (unless an existing mapping was used). NT 2001-04-29  
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 TimeMark.bat   Set environment variables with the time the batch file was run, hours, minutes, seconds and hundredths of seconds NT 2009-11-15 The values refer to the time the batch file was run, they will not be updated to the current time
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 TimeShift.bat 1.01 Convert date/time from any timezone to local date/time NT 2011-04-11 Requires PHP
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 Today.bat 1.10 Display the current date in DDMMYYYY or YYYYMMDD format, with any delimiter you want W2K 2009-01-20 Requires DEBUG
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 TodayNow.bat 1.10 Display the current date and time in YYYYMMDDHHmmss format without any delimiters NT 2009-01-20 Requires DEBUG
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 TrueName.bat 2.00 Display the true path of SUBSTed or mapped network drives NT 2007-12-21 This script is for CMD.EXE; TRUENAME is a native, internal command in COMMAND.COM.
Also available as OS/2 Rexx script.
Thanks to John Taylor for reporting a "space bug" in the previous version.
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 Twirly.bat 1.00 Display "rotating" characters XP W2K3 2009-05-28 Written by Brian Williams.
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 UnBlock.bat 1.00 Modify downloaded files' Zone Identifier to mark them as safe XP 2007-06-17 Based on an article in Windows Scripting Solutions by Bill Stewart.
More info on Zone Identifiers in MS Knowledge Base articles 883260, 889815 and 105763.

Disclaimer: By manually marking a file safe you effectively disable the zone checking security mechanism for that file.
This is absolutely NOT recommended!!!
Use this batch file entirely at your own risk.

More detailed information can be found on my Alternate File Streams page.
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 UniqueID.bat 2.00 Remove Intel LANDesk agent's ID and force creation of a new unique ID 95 NT 2001-07-13  
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 UpCase.bat 2.00 Convert filenames to all uppercase NT OS2 2001-11-20 Also available as KiXtart and OS/2 Rexx scripts.
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 UpTime.bat 1.00 Display the amount of time a system has been up and running. NT 2006-04-22 Requires SRVINFO.
Also available in VBScript.
More or less equivalent to my OS/2 Rexx script LastBoot.cmd which is available in VBScript too.
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 User2SID.bat 1.00 Return DOMAIN\UserID for the specified SID XP 2010-07-26 Requires WMIC.
Also available in VBScript.
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 UsrInput   Ask for user input and store it in an environment variable All 2001-04-25  
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 VBSAssoc.bat 1.10 (Temporarily) change the .VBS file type association to CSCRIPT.EXE NT 2012-09-27 The batch file creates another batch file which can restore the original file type association.
Code optimized by David Keller.
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 VideoROM.bat 1.00 Displays manufacturer information from video adapter ROM DOS 2003-03-02 Requires DEBUG.
Original idea by ComputerHope.
Also available in KiXtart, Perl, Rexx and VBScript.
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 VideoROM.bat 2.00 Displays manufacturer information from video adapter ROM NT 2003-03-02 Requires DEBUG.
Much simpler than versions 3 and 4.
Also available in KiXtart, Perl, Rexx and VBScript.
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 VideoROM.bat 3.00 Displays manufacturer information from video adapter ROM NT 2003-03-02 Requires DEBUG.
Works without temporary files.
Also available in KiXtart, Perl, Rexx and VBScript.
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 VideoROM.bat 4.00 Displays manufacturer information from video adapter ROM NT 2003-03-02 Requires DEBUG.
The most complex version, but it gives the "cleanest" output.
Also available in KiXtart, Perl, Rexx and VBScript.
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 VipreVer.bat 1.00 Display any computer's Sunbelt Vipre AntiVirus program and virus definitions versions W2K 2008-12-23  
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 Wait   Wait for a specified number of seconds All 2000-06-04 Requires SLEEP (NT) or RexxUtil's SysSleep function (OS/2). 
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 Wallpapr.bat 1.00 Randomly change bitmaps for background screen W2K 2004-08-21 Read the comments in the script before using it.
Also available as OS/2 Rexx, Windows Rexx and VBScript scripts.
Use SetWallp.bat or Wallpaper.vbs if you want to specify the bitmap yourself.
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 WANIP.bat 4.00 Display your WAN connection's IP address and host name NT 2009-01-29 Requires WGET.
Idea: Gregg Dotoli.
Also available in VBScript.
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 WANIP.bat 1.00 Display your WAN connection's IP address NT 2010-09-28 Requires PHP.
Idea: Stan Littlefield
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 Week.bat   Display week number. DOS 2001-10-07 Requires WEEKOFYR.
Also available as KiXtart, Rexx, Perl or VBScript script.
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 WeekNT.bat 1.00 Display week number. NT 2001-10-07 Also available as KiXtart, Rexx, Perl or VBScript script.
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 WeekPHP.bat 1.01 Display the ISO week number. NT 2011-03-01 Requires PHP.
The most accurate version so far.
Also available as KiXtart, Rexx, Perl or VBScript script.
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 WeekXP.bat 1.02 Display the ISO week number. XP 2011-02-14 Requires WMIC.
More accurate than the NT version, but still not flawless.
Also available as KiXtart, Rexx, Perl or VBScript script.
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 Which.bat 1.00 A Unix-like WHICH utility DOS 1999-05-30 Available for NT and OS/2 (Rexx) and as KiXtart and Perl scripts
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 Which.bat 5.20 A Unix-like WHICH utility NT 2012-06-11 Co-author: Yakov Azulay
Available for DOS and OS/2 (Rexx) and as KiXtart and Perl scripts
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 Which.bat 6.10 A Unix-like WHICH utility XP 2012-06-11 Co-author: David Riemens
Available for DOS and OS/2 (Rexx) and as KiXtart and Perl scripts
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 WhoAmI.bat   Show info on workstation and current user NT 2000-06-12 Also available for OS/2 as WhoAmI.cmd
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 WhoHasIt.bat 1.00 Show info on remote workstation and current user W2K 2004-10-21 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 WhoIs.bat 2.00 Display WHOIS database entry for the specified domain. All 2002-10-12 Also available as VBScript script
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 WhoIsIt.bat 1.00 Show specified domain user's display name W2K 2004-10-21 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 WhoRU.bat 3.11 Remote WhoAmI (Who Are You) NT 2000-10-15 Requires GETMAC, GETSID, SRVINFO and WINSDMP
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 Win3264.bat 1.00 Check if Windows is a 32 or 64-bits version NT 2009-12-27  
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 WinSAT.bat 1.00 Return Windows System Assessment Tools's (WinSAT) scores for the specified computer XP 2013-11-20 Requires WMIC
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 WinUpd.bat 1.00 Reenable Windows' Update feature 95 NT 2002-04-10 Also available as KiXtart script.
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 WinVer.bat 1.00 Display Windows version NT 2009-10-12 Written by Denis St-Pierre.
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 WinVer2.bat 1.00 Display Windows version and optionally check if it meets the specified minimum required NT 2011-01-05  
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 WUTest.bat   Checks time of last Windows Update install against time of last download, and reports a failure if the last download was later XP 2009-09-14  
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 XML2XPath.bat 1.00 Display the contents of an XML file as a list of XPath expressions W2K 2010-10-05 Requires Saxon XSLT processor and XML2XPath.xsl.
Based on an article by Paul Gallagher.
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 Yesterday.bat 3.10 Display yesterday's, today's and tomorrow's dates in two formats NT 2013-02-11 Julian date math based on Fliegel-Van Flandern algorithm from the Astronomical Almanac, provided by Doctor Fenton on the Math Forum, and converted to batch code by Ron Bakowski.
Also available in JScript, KiXtart, Perl, Rexx and VBScript

 

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
NT Windows NT 4 and later
NT4 Windows NT 4 (Windows NT 4 Terminal Server Edition too)
W2K Windows 2000 and later
XP Windows XP
W2K3 Windows Server 2003
W2K8 Windows Server 2008
WV Windows Vista
W2K8R2 Windows Server 2008 Release 2
W7 Windows 7
OS2 OS/2 Warp
TS Windows NT 4 Terminal Server Edition, or Windows Server 200* with Terminal Services

page last uploaded: 18 November 2012, 19:31