Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


August 11, 2006

How to Get Started Writing Scripts

Resources recommended by scripting experts
RSS
Subscribe to Windows IT Pro | See More Jscript Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

A few months ago, I received an email message from a reader saying that he has the desire and time to learn scripting but doesn't know where to start. That message prompted me to contact several scripting experts and compile a list of resources that this reader and others could use to learn scripting in the Windows environment.

To begin, it helps to know the basic concepts behind scripting. The article "An Introduction to Scripting Technologies and Object Models" (May 2000, InstantDoc ID 8599) provides an easy-to-understand overview of scripting. Before I go any further, however, let me mention two important notes:

  1. I reference Windows Scripting Solutions, Windows IT Pro, Microsoft, and third-party resources. All the Windows Scripting Solutions and Windows IT Pro article references include an InstantDoc ID. To access these articles, simply go to http://www.windowsitpro.com, enter the specified number in the InstantDoc ID box at the top of the page, and click Go. As a Windows Scripting Solutions subscriber, you can access all Windows Scripting Solutions articles. For the benefit of readers who aren't also Windows IT Pro subscribers, I'm making all the Windows IT Pro articles I mention available for public viewing until October 2.
  2. Some of the articles and books I mention aren't recent, but they're still good references for learning scripting. To borrow an old cliche, they're "oldies but goodies."

One point that "An Introduction to Scripting Technologies and Object Models" brings up is that there are different scripting languages. Because many scripting languages exist, I decided to narrow the list. I cover the languages of Windows shell scripting, VBScript, JScript, Perl, and T-SQL. For those of you who aren't new to scripting but who haven't had a chance to start working with Windows PowerShell (formerly code-named Monad), I also include some resources for learning this new command-line shell's scripting language, which is called Powerscript.

Which languages you should you learn depends on the systems you work with. If you work with Windows, I suggest you start by learning shell scripting and VBScript. If you work with Microsoft SQL Server, you should probably start with shell scripting and T-SQL. Note that I specified two languages in each case. As with chocolate and potato chips, getting just a taste of learning makes you hungry for more.

Shell Scripting
The scripting language that the Windows command processor (cmd.exe) uses is often referred to as Windows shell scripting. The 10-part series "Shell Scripting 101" is an excellent tutorial for people who want to learn to write .bat and .cmd scripts. (If you're wondering about the difference between .bat and .cmd scripts, read Lesson 2.) This series walks you through the basics and even includes practical exercises you can try on your own. The articles in this Web-exclusive series are

  • "Shell Scripting 101, Lesson 1," January 2001, InstantDoc ID 16355
  • "Shell Scripting 101, Lesson 2," February 2001, InstantDoc ID 19840
  • "Shell Scripting 101, Lesson 3," March 2001, InstantDoc ID 20142
  • "Shell Scripting 101, Lesson 4," April 2001, InstantDoc ID 20530
  • "Shell Scripting 101, Lesson 5," May 2001, InstantDoc ID 20781
  • "Shell Scripting 101, Lesson 6," June 2001, InstantDoc ID 21310
  • "Shell Scripting 101, Lesson 7," July 2001, InstantDoc ID 21630
  • "Shell Scripting 101, Lesson 8," August 2001, InstantDoc ID 21984
  • "Shell Scripting 101, Lesson 9," September 2001, InstantDoc ID 22289
  • "Shell Scripting 101, Lesson 10," October 2001, InstantDoc ID 22582

After you go through that series, I suggest checking out the following articles:

  • "Getting Started in NT Shell Scripting, Part 1," March 2000, InstantDoc ID 8182
  • "Getting Started in NT Shell Scripting, Part 2," April 2000, InstantDoc ID 8384
  • "The FAQs About Setting Up Your Shell Scripting Environment," May 2006, InstantDoc ID 49676

One book that several scripting experts recommend is Tim Hill's Windows NT Shell Scripting (Macmillan Technical Publishing, 1998).

   Previous  [1]  2  3  Next 


Reader Comments
it nice

sidhu November 10, 2006 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Accessing Database Data with ADO

...

The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...

Friday at PASS Europe 2006

Kevin talks about the closing day of the event and shares a funny Microsoft film. ...


Related Events Check out our list of Free Email Newsletters!

Scripting eBooks Keeping Your Business Safe from Attack: Encryption and Certificate Services

Best Practices for Managing Linux and UNIX Servers

Building an Effective Reporting System

Related Scripting Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.

Job Openings in IT


ADS BY GOOGLE SPONSORED LINKS FEATURED LINKS

Maximize your SharePoint Investment – 8 Cities
Discover best practices and tips for both architecting and administering SharePoint. Early Bird Price of $99 through Sept 15th.

Find a new job now on the all new IT Job Hound!
Search jobs, post your resume, and set up job e-mail alerts!

Master SharePoint with 3 eLearning Seminars
Learn how to build a better SharePoint infrastructure and enable powerful collaboration with MVPs Dan Holme and Michael Noel. Register today!

Top Tools for Virtualization Disaster Recovery & Replication
View this web seminar on August 14th to learn about two tools that will result in faster backup and restore with P2V disaster recovery.

SharePointConnections Conference Fall 2008
Don’t miss the premier event for Microsoft IT Professionals in Las Vegas, November 10-13. Register and book your room by August 25 and receive a FREE room night (based on a three night minimum stay).

VMworld 2008 - Sign Up Today!
Join your peers on September 15-18 at The Venetian Hotel in Las Vegas as VMware hosts VMworld 2008, the leading Virtualization event.



Increase Application Performance
Free White Paper by Editor's Best winner, Texas Memory Systems.

Microsoft® Tech•Ed EMEA 2008 IT Professionals
Advance your thinking with new ideas and practical real-world solutions at Microsoft’s FIVE day technical infrastructure conference 3-7 Nov., 2008. Register before 26 September 2008 to save €300.

Order Your SQL Fundamentals CD Today!
Learn how to use SQL Server, understand Office integration techniques and dive into the essentials of SQL Express and Visual Basic with this free SQL Fundamentals CD.

Are You Really Compliant with Software Regulations?
View this web seminar that will help you with compliance best practices and check out a management solution to assure that you won’t be in jeopardy of an audit.

Virtualization Congress Oct. 14-16 in London
Don't miss Virtualization Congress, the premiere EMEA conference dedicated to hardware, OS and application virtualization. Oct. 14-16.
Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technical Resources Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing