Batch Files: Examples (U)

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 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  

 

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