LabMice.net - The Windows 2000\XP\.NET Resource Index
Home | About Us | Search

Last Updated August 16, 2006

Virtual Server 2005 R2

SQL Server 2005

BackOffice
Book Reviews
Career Tools
MCSE Toolkit
Networking
Resource Centers

Scripting
  Batch Files
 

 


  Command Line
  Logon Scripts
  Perl
  Visual Basic
  WSH
Security
Utilities
Cybercheese

 

Administration
  Batch Files
  Command Line
  Env Variable
  Logon & Auth
  Logon Scripts
  MMC
  Password Mgmt
  Run As
  Scheduling Service
  Services
  Telnet
  Time Synch

 

 

Batch Files

Batch programs (also called batch files) allow you to simplify routine or repetitive tasks. A batch program is an unformatted text file that contains one or more commands and has a .bat or .cmd file name extension. When the file name is typed at the command prompt, the commands in the file are executed sequentially
 
Free Newsletters for Windows Systems Pros
Sign up for the free newsletters from SearchWindowsServer.com to get tips, news and expert advice delivered right to your inbox. Topics include server management, storage management, backup/recovery, systems and network management tools and more. Subscribe now!
Where to start..
Batch File Command Reference
A modification of the Microsoft documentation covering the basic batch file commands for Windows 2000, including CALL, ECHO, ENDLOCAL, FOR, GOTO, IF, PAUSE, REM, SETLOCAL, SHIFT and variables. Provides syntax and examples.

Resource Kit Batch File Commands
Resource Kit Batch File Commands In this installment of Top 10, I share my favorite Microsoft Windows NT Server 4.0 Resource Kit commands, which I frequently use with my NT command shell scripts. Source: Windows 2000 Magazine (April 2000)

Windows 2000 Command Reference
A list of every command available in Windows 2000, including correct syntax, switches, examples, and Resource Kit utilities. Source: Windows 2000 Advanced Server Online Documentation

Windows Security Scripting
The Unix world calls them shell scripts. The DOS world calls them batch files. Whatever you call them, command line scripts are easy to forget in the GUI world of Windows. While scripting on Windows isn't as powerful as on Unix, some of the improvements introduced in Windows NT 4.0 may surprise you. Scripts are ideal for ensuring consistency, for scheduling periodic tasks and for automating tedious tasks. In other words, they're perfect for security. Source: InfoSecurity Magazine

Misc..
Batch Process to Create and Grant Access to Home Directories
Microsoft Knowledge Base Article: 155449 - When administrators need to create large numbers of users and corresponding home directories, the task can be simplified by using a batch process rather than creating each home directory individually through Windows NT File Manager or Windows Explorer

How to Run a Batch File Before Logging on to Your Computer
Microsoft Knowledge Base Article: 243486 - Windows 2000 can be configured to run a startup script that is a batch file, VB script or JScript by using Group Policies. These policies can be either domain wide or computer-specific local policies. 

How to Use CACLS.EXE in a Batch File
Microsoft Knowledge Base Article: 135268 - The CACLS.EXE command line utility does not provide a /Y switch that automatically answers with Y for Yes to the ARE YOU SURE? Y/N prompt. However, you can use the echo command to pipe the character Y as input to the ARE YOU SURE? Y/N prompt when you call CACLS.EXE in a batch file.

Batch File with Parentheses Cannot Be Started
Microsoft Knowledge Base Article: 217127 - When you attempt to start a batch file from the desktop, it fails without an error message. 

Batch File Adds/Removes Machine Accounts in Server Manager
Microsoft Knowledge Base Article: 140387 - An Windows NT network administrator may have to add a large number of Windows NT Workstations or Non-Domain Controller Servers to a domain's Machine Account database, which is accessed and maintained by the Server Manager user interface. 

SED
Learn how the SED batch-file utility simplifies taking input from a user at a command prompt, retrieving values from text files and assigning them to environment variables, and parsing text files for different stages of an automated installation to use. Source: Windows & .NET Magazine (Aug 1999)>

Using FTP Batch Scripts
Microsoft Knowledge Base Article: 96269 - FTP (file transfer protocol) is a file transfer utility commonly used with UNIX systems. FTP is capable of using scripts (lists of commands from external files). 


This site and its contents are Copyright 1999-2003 by LabMice.net. Microsoft, NT, BackOffice, MCSE, and Windows are registered trademarks of Microsoft Corporation. Microsoft Corporation in no way endorses or is affiliated with LabMice.net. The products referenced in this site are provided by parties other than LabMice.net. LabMice.net makes no representations regarding either the products or any information about the products. Any questions, complaints, or claims regarding the products must be directed to the appropriate manufacturer or vendor.