Home > Windows Server Tips > Windows Systems and Network Administration > Why batch files are still useful
Windows Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WINDOWS SYSTEMS AND NETWORK ADMINISTRATION

Why batch files are still useful


Tim Fenner
07.07.2005
Rating: -4.46- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Please let us know how useful you find this tip by rating it below. Do you have a useful Windows tip, timesaver or workaround to share? Submit it to our monthly tip contest and you could win a prize! And don't forget to go in and rate other tips users have submitted this month:
Easy Mail Server changes
Add or modify the registry via group policy
Use Windows XP sysprep to create images
Speed up remote access to network resources
Use HP's JetDirect printer server to count bad packets
Protect Win XP files during power outage


Scripting and coding is fine for those who wish to spend their day learning all the ins and outs of the programming language. But for me, reusing some old batch file commands has saved me time and gets the job done just as well (without having to teach this "...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Windows Systems and Network Management Tools and Techniques
Getting familiar with IPv6 for Windows environments
Perfmon made easy with PAL utility
Troubleshooting Windows application crashes or hangs
Free Windows security tools every admin must have
Top five Server Core management tips for Windows 2008
Top free tools for Windows server administration
A first look at Internet Information Services 7.0
Windows registry hack improves offline file access for mobile users
Reducing the size of network backups in Windows
Monitor network bandwidth with CyberGauge

Windows Systems and Network Administration
Troubleshooting Windows application crashes or hangs
Converting VMware ESX machines to Hyper-V format
Using DFSR for SYSVOL replication in Windows Server 2008
Top 25 Windows PowerShell commands for administrators
Key DFS improvements in Windows Server 2008 R2
Free Windows security tools every admin must have
Group Policy makes strides in Windows Server 2008 R2
Quick tips for troubleshooting NTFS permissions
Common causes of Windows server security vulnerabilities
Cutting the cost of Windows identity and access management

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


old dog" any new tricks). If you are like me and know how to create batch files, then this tip will be a basic review for you. If you are new, then I hope you will find this tip useful.

Typically these batch file commands are universal between Windows versions, but you may find some that are not. However, there is typically a substitute for the version you wish to use.

To create a batch file, you need only open Notepad.exe, type in the batch syntax, then save the file as a .bat extension (batchfile.bat).

Batch files are great for logon scripts, for automating PC environment configurations and for simply making IT life easier.

If you ever want to know more about a batch file command, typically you just have to type /? after the command to get a list of options.

I have attached examples of batch files for you to review and use below. Some of these include:
-Create, copy and delete files/folders
-Create ODBCs
-Create mapped drives and install network printers
-Condition checking
-Synchronizing time

Example of Windows Batch File Commands:

For more examples, use your favorite search engine and look for Windows Batch File Commands. You'll turn up sites like these:
10 most used batch commands
An A-Z Index of the Windows NT/XP command line.

Rate this Tip
To rate tips, you must be a member of SearchWindowsServer.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Server Room Design - Planning, Cooling, Maintenance
HomeTopicsBlogsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts