Batch files - Examples (W*)

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

 

Batch file examples
Download the ZIPped sources Name Description OS (1) Last modified
(DD/MM/YYYY)
Remarks
Download the ZIPped sources Wait Wait for a specified number of seconds All 04/06/2000 Use the Resource Kit's SLEEP.EXE in NT, and RexxUtil's SysSleep function in OS/2
Download the ZIPped sources Wallpapr Randomly change bitmaps for background screen W2K 21/08/2004 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.
Download the ZIPped sources WANIP.bat Display your WAN connection's IP address and host name NT 16/05/2005 Idea: Gregg Dotoli.
Uses WGET.
Download the ZIPped sources Week.bat Display week number. DOS 07/10/2001 Requires Solid Oak Software's WEEKOFYR.COM.
Also available as Kix, Rexx, Perl or VBScript script.
Download the ZIPped sources Week.bat Display week number. NT 07/10/2001 Also available as Kix, Rexx, Perl or VBScript script.
Download the ZIPped sources Which A Unix-like WHICH utility All 29/01/2004 Available for DOS, NT and OS/2 (Rexx) and as KiXtart and Perl scripts
Download the ZIPped sources WhoAmI.bat Show info on workstation and current user NT OS2 12/06/2000 Also available for OS/2 as WhoAmI.cmd
Download the ZIPped sources WhoHasIt.bat Show info on remote workstation and current user W2K 21/10/2004 Requires Windows Server 2003's DS Tools
Download the ZIPped sources WhoIs.bat Display WHOIS database entry for the specified domain. All 12/10/2002 Also available as VBScript script
Download the ZIPped sources WhoIsIt.bat Show specified domain user's display name.
Uses DSQUERY & DSGET from Windows Server 2003.
W2K 21/10/2004 Requires Windows Server 2003's DS Tools
Download the ZIPped sources WhoRU.bat Remote WhoAmI (Who Are You) NT+RK 15/10/2000  
Notes: (1) Operating System version these batch files were meant for
All No version specific commands are used, though it is (obviously) not tested with every DOS version available
95 Windows 95 (and probably Windows 98 as well)
98 Windows 98
DOS3 MS-DOS 3 and 4
DOS6+ MS-DOS 6 and later
Kix Windows (most functions also in plain DOS) with KiXtart
NT4 Windows NT 4 (Windows NT 4 Terminal Server Edition too)
NT Windows NT (Windows 2000 and Windows NT 4 Terminal Server Edition too)
NT+RK Windows NT with Resource Kit (Windows NT 4 Terminal Server Edition with Resource Kit too)
W2K Windows 2000, and probably XP and Server 2003 as well
W2K+RK Windows 2000 with (Server) Resource Kit, and (probably) XP and Server 2003 as well
W2K3 Windows Server 2003
XP Windows XP
OS2 OS/2 Warp
TS Windows NT 4 Terminal Server Edition, or Windows 2000 Server or Windows Server 2003 with Terminal Services