The VBScript Network and Systems Administrator's Cafe:

October, 2008


October 31, 2008  6:17 AM

Using Internet Explorer objects to scrape links from web pages.

Posted by: Jerry Lees
InternetExplorer.Application, Web Pages, web sites, web tools, wget

 Recently, I needed to write a tool that would scrape the links from a page. To accomplish this I used the Internet Explorer object "InternetExplorer.Application".  We'll explain it a bit more in a later entry but for now, take a look at the code below: URL =...

October 30, 2008  12:00 AM

A new found bug in VBScript that causes if then statements to return wrong comparisons (or is it?)

Posted by: Jerry Lees
Integer, string, Variable Types, variant, VBScript, working with variables

In the past I've cautioned you on always initializing your variables and encouraged you to always declare your variable types, rather than using the default variant type in VBScript. I'll be the first to admit I don't follow my own advice in my examples! However, variants can be...

October 24, 2008  12:30 AM

Using Environment variables inside a VBScript script

Posted by: Jerry Lees
Environment Variables, VBScript, wscript,

As an extension of the theme I've been blogging about lately of "interfacing with other types of applications" in VBScript, I'd like to share with you a snippet of VBScript code that will allow you to read environment variables from your system. This will allow you to determine a great deal of...

October 23, 2008  1:43 PM

A simple way to gather keyboard input from with in a VBScript

Posted by: Jerry Lees
Input, inputbox, User Input, VBScript

While entering data at the command line for a script to use is sometimes helpful like we discussed in  

  Bookmark and Share     0 Comments     RSS Feed     Email a friend

October 17, 2008  11:11 PM

Communicating error levels to a calling application from with in VBScript

Posted by: Jerry Lees
batch commands, Error control, errorlevel, exit, on error, VBScript, wscript, WScript.quit

We've discussed error handling previously (via the On Error Goto 0 command) in a entry titled, Using error control in a VBScript to recover from...

Bookmark and Share     2 Comments     RSS Feed     Email a friend

October 16, 2008  2:53 AM

Consuming and using a web service from within VBScript to create a WHOIS tool

Posted by: Jerry Lees
SOAP, VBScript, Web Pages, Web Service, web sites, web tools, WSDL

Recently I posted a list of web services at a site that were public web services, in the article entitled A Great list of FREE publicly...

Bookmark and Share     0 Comments     RSS Feed     Email a friend

October 10, 2008  7:57 PM

A Great list of FREE publicly available Web Services

Posted by: Jerry Lees
SOAP, Web Pages, Web Service, web sites, web tools, webmaster, WSDL

As an IIS Administrator I have spent quite a bit of time administering web sites and web services in my role where I work. Recently, I have been doing some work with Web Services in IIS to actually monitor them since we needed to do more than just simply monitor the Web Service Definition Language...

October 6, 2008  4:36 PM

Using the windows file dialog box in VBScript to provide file selections and populate script options

Posted by: Jerry Lees
Development, File Dialog, tips and tricks, UserAccounts.CommonDialog, VBScript, vbscript tips

Sometimes the command line is great for getting a script running and doing the task a script was intended to do, however, sometimes you simply don't want to add the overhead of opening a command prompt, navigating to the directory where your script is located, and then remembering the command line...

October 3, 2008  3:00 PM

How to retrieve HTML web pages with VBScript via the Microsoft.XmlHttp object

Posted by: Jerry Lees
HTML, HTTP, Microsoft.XmlHttp, VBScript, VBScript Objects, Web Pages, XML

Recently, I had a situation where I had to pull down a HTML page to compare it to a known copy of the page. Certainly, IE or FireFox-- or Google's Chrome would have done the trick and I could have viewed the source. But that would require me to do...

October 1, 2008  2:06 PM

Easy string manipulation with VBScript using the Replace Function

Posted by: Jerry Lees
Functions, Replace, String manipulation, VBScript, VBScript Functions

Recently, I had a situation at the office where I needed to check a web.config file for the existence of a setting. Not a hard problem-- just open the file up an look for it, however, that becomes a little harder when your talking about 30 servers. So, I scripted it using the replace...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: