Home > Just the FAQs guide to VB Scripting basics
FAQ:
EMAIL THIS

Just the FAQs guide to VB Scripting basics

02 Dec 2005 | Rod Trent

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

This FAQs Guide takes you on a beginner's journey to understanding VB Scripting and the concepts surrounding scripting in the first place. Consisting of more than 50 pages in Adobe Acrobat format, this guide will be updated in the future to progress into intermediate and expert concepts. Click here to download the full guide.

Below is an excerpt from the guide:

Q: What's the best way to learn to script?

A: This question comes up quite a bit on Web forums and e-mail discussion lists. When individuals finally decide that they are ready to start on the path to scripting, they turn to someone who would know where to begin. If you notice, everyone will give a slightly different answer. Some will give a long list of scripting books, others will copy and paste links to their favorite scripting Web sites. But, despite the laundry list, one point rings through every time: You learn by doing.

Remember when you started learning how to drive a car? You probably gave your parents quite a few heart attacks, but they knew the only way you were going to understand driving was to sit behind the wheel and work out your own rhythm. Your dad gave you the basics: "The brake pedal is on your left and the gas pedal is on your right," "That's the turn signal -- no, no on the other side. Those were the wiper blades."

But, better than learning to drive, you won't have to worry about needing a licensed scripter sitting in the passenger seat. You're on your own, doing your own thing, learning at your own pace and getting your own rhythm. And, unless you write a script that reboots the file servers and test the script in a production environment, you won't cause too many heart attacks.

There is no licensing fee for a script. As you are surfing the Web, finding scripting Web sites and reviewing script code, grab it all and save it somewhere on your hard drive. Be as script-hungry as you like, and no one will care.

There are several resources available for learning scripting. Grabbing scripts from these resources is the most important key to understanding the languages. One of the most exciting aspects of the scripting community is each individual's willingness to share what he has done. A couple quick changes here, an addition of a line or two and a script you found or received from someone is ready to work in your environment. But, remember, other people will be just like you -- chomping at the bit to learn how to script. Don't be stingy and keep your scripts locked up in a box somewhere. By sharing what solutions you have scripted, you not only help the "newbies" get up to speed, but you help keep a community growing and going strong.

Believe it or not, your best and most loyal companion on your scripting journey is the actual scripting documentation from Microsoft. What? You mean the same company that spearheaded the effort to rid the world of product manuals? Yep, one and the same. I use the documentation regularly. Not only does it contain comprehensive information, but it also includes script examples in both VB Script and JavaScript that you can copy and work with yourself. A quick jaunt over to Microsoft's scripting Web site (http://msdn.microsoft.com/scripting) gives you the download links for all of the documentation. Here's a list of what's available:

And, when you've had your fill of Microsoft's documentation, then what? The Internet is such an enormous place, surely there are some Web sites I can give you to go on your scripting shopping spree. Here they are:

  • myITforum.com: (http://myITforum.techtarget.com). myITforum.com is the premier Web site for systems administrators. If you have a problem, you can find an answer here. myITforum.com has an entire section dedicated to VB Scripting with new articles posted daily. There's also a dedicated VB Scripting Web forum where people post problems and answers, complete with script examples. And be sure to check out the VB Scripting downloads area. Not only can you nab some free script downloads, but as a site member you can post your own solutions. Most of the online scripting community runs through this site.
  • Microsoft's TechNet Script Center: (http://www.microsoft.com/technet/treeview/default.asp?url=/technet/scriptcenter/default.asp). Recently inaugurated, this site is quickly becoming the epicenter for script downloads. There isn't a schedule when new scripts are released, so you'll need to check back periodically.
  • WSHScripting.com: (http://www.wshscripting.com/). Another hit-and-run site for grabbing scripts, WSHScripting.com offers a nice library of download script solutions.
  • Win32Scripting: (http://cwashington.netreach.net/main). The URL for this Web site is deceiving. I know it looks like someone's personal homepage, but that's not the case. The Win32Scripting Web site is a well-organized library of script submissions. The search engine is very usable, allowing you to pinpoint downloadable scripts according to their topic matter. The only downfall of the Web site is that the site navigation takes a while to master. It's like reengineering a car door handle to make it more complicated, just because you can. You'll see what I mean when you visit the site.

ABOUT THE AUTHOR: Rod Trent, manager of myITforum.com and Microsoft MVP is a leading expert on Microsoft Systems Management Server. He has more than 18 years of IT experience -- eight of which have been dedicated to SMS. He is the author of such books as Microsoft SMS Installer, Admin911:SMS, and IIS 5.0: A Beginner's Guide, and has written literally thousands of articles on technology topics.

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



RELATED CONTENT
Microsoft Windows Scripting Language
Create a script to check integrity of your server's drives
Scripting elevation in Windows Vista with JavaScript
Use Ldifde.exe and Csvde.exe data export tools to create Active Directory objects
Scripting School: Replacing text with regular expressions
Scripting School: Writing a script for an office inventory system
Christa Anderson's Scripting School for Windows administrators
How to automate advanced Windows desktop tasks using scripts and macros
Script reveals which port Terminal Services listens to for incoming connections
Scripting School: Find objects with Windows Script Host
Windows scripting for beginners

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




Hyper-V - Windows Server Virtualization Solutions
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