Rob van der Woude's Scripting Pages

Batch Files: Examples (W)

💾 Click the floppy disk or package (for third party scripts) 📦 icons to download the ZIPped sources

Click the question mark icons to view the MD5 and SHA1 checksums for the ZIPped 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
💾 Name Version Description OS (1) Last modified Remarks
💾 Wait   Wait for a specified number of seconds All 2000-06-04 Requires SLEEP (NT) or RexxUtil's SysSleep function (OS/2). 
💾 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.
💾 WANIP.bat 4.01 Display your WAN connection's IP address and host name NT 2018-12-13 Requires WGET.
Idea: Gregg Dotoli.
Also available in VBScript.
💾 WANIP.bat 1.00 Display your WAN connection's IP address NT 2010-09-28 Requires PHP.
Idea: Stan Littlefield.
💾 Week.bat   Display week number. DOS 2001-10-07 Requires WEEKOFYR.
Also available as KiXtart, Rexx, Perl or VBScript script.
💾 WeekNT.bat 1.01 Display week number. NT 2015-02-26 Also available as KiXtart, Rexx, Perl or VBScript script.
💾 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.
💾 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.
💾 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.
💾 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.
💾 Which.bat 6.11 A Unix-like WHICH utility XP 2014-10-01 Co-author: David Riemens
Available for DOS and OS/2 (Rexx) and as KiXtart and Perl scripts.
💾 WhoAmI.bat   Show info on workstation and current user NT 2000-06-12 Also available for OS/2 as WhoAmI.cmd.
💾 WhoHasIt.bat 1.00 Show info on remote workstation and current user W2K 2004-10-21 Requires Windows Server 2003's DS Tools
💾 WhoIs.bat 2.00 Display WHOIS database entry for the specified domain. All 2002-10-12 Also available as VBScript script.
💾 WhoIsIt.bat 1.00 Show specified domain user's display name W2K 2004-10-21 Requires Windows Server 2003's DS Tools
💾 WhoRU.bat 3.11 Remote WhoAmI (Who Are You) NT 2000-10-15 Requires GETMAC, GETSID, SRVINFO and WINSDMP
💾 Win3264.bat 1.00 Check if Windows is a 32 or 64-bits version NT 2009-12-27  
💾 WinSAT.bat 1.00 Return Windows System Assessment Tools's (WinSAT) scores for the specified computer XP 2013-11-20 Requires WMIC
💾 WinUpd.bat 1.00 Reenable Windows' Update feature 95 NT 2002-04-10 Also available as KiXtart script.
📦 WinVer.bat 1.00 Display Windows version NT 2009-10-12 Written by Denis St-Pierre.
💾 WinVer2.bat 1.00 Display Windows version and optionally check if it meets the specified minimum required NT 2011-01-05  
💾 WinVerCL.bat 1.00 Console version of Windows' native WINVER command NT 2022-04-21  
💾 WMIAlias.bat 1.01 Return the WMI class name for the specified WMIC alias, or list them all XP 2023-11-17 Requires WMIC
💾 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  

 

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
W10 Windows 10
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 modified: 2024-03-11; loaded in 0.0302 seconds