Batch files - Examples (N*)

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 NETFxVer.bat List the installed .NET Framework versions W2K 07/05/2008  
Download the ZIPped sources NetSetXX.bat, available in Dutch, English and French Store the Computer name, User name and Workgroup in environment variables 98 01/11/2000  
Download the ZIPped sources NetWho.bat
NetWho2.bat
NET WHO (as in OS/2) "ported" to NT: show every requester plus who is logged on NT 20/06/2002 NetWho.bat assumes requester names are in PC1234 format (to ignore servers), NetWho2.bat doesn't assume anything but may also show servers
Download the ZIPped sources NoAutoRun.bat Completely disable Windows' AutoRun feature XP 11/11/2007 Based on an article by Scott Dunn
Download the ZIPped sources NoBrowse.bat Prevent the local workstation from becoming a master browser NT 14/03/2002  
Download the ZIPped sources NoNagXP.bat Disable nag screens for .NET Passport and Windows XP Pro Tour XP 28/06/2005 Idea: Greg Schultz's xpnagdisabler VBScripts on http://techrepublic.com.com
Download the ZIPped sources NoTrkIco.bat Disable "smart shortcut tracking" on the local PC. W2K 16/04/2002 Based on a tip by Sander Jousma.
Download the ZIPped sources NoWinUpd.bat Disable Windows' Update feature 95 NT 10/04/2002 also available as KiXtart script
WinUpd.bat Reenable Windows' Update feature also available as KiXtart script
Download the ZIPped sources NTRole.bat Displays the role (server or workstation) of the PC where this batch file is run NT 18/11/2001  
Download the ZIPped sources NumLock.bat Display or change default NumLock status for current user NT 27/03/2003  
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