InfoScraper
Tools and techniques to extract information from web pages and newsletters
December 2002
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Nov   Jan
 



Subscribe to "InfoScraper" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.
 

"Data! data! data!" he cried impatiently. "I can't make bricks without clay."
— Sherlock Holmes to Dr. Watson in "The Adventure of the Copper Beeches" by Arthur Conan Doyle. 


"I like deadlines," cartoonist Scott Adams once said. "I especially like the whooshing sound they make as they fly by."
"There is nothing like that feeling of spending days and days banging your head against a wall trying to solve a programming problem then suddenly finding that one tiny obscure and seemingly unrelated piece of the puzzle that unlocks the solution. Oh yeah!"

- Chris Maunder, CodeProject Newsletter 28 Jan 2002
"Management at eSnipe, which is me, is also feeling the pain of the 2002 bear market. So rather than pout about it, I bought some stuff on eBay that I really didn’t need, but made me feel better."

- Tom Campbell, president of eSnipe

 



 

 
 Monday, December 02, 2002
  3:48:36 PM  

Using VBScript to run a program

VBScript can be used instead of a batch file to perform setup and cleanup operations before and after running another program.

For games, we might need to:

  • load the CD image
  • change controller preferences
  • change screen resolution

The VBScript syntax is:
     object.Run(strCommand, [intWindowStyle], [bWaitOnReturn{=false}])

Dim oShell
Set oShell = WScript.CreateObject ("WSCript.shell")
oShell.run "cmd /K CD C:\ & Dir"
Set oShell = Nothing

For Paragon CD-ROM Emulator, the command line would be:
    Cdman /command:e'-”T”,i-"T=E:cdthe image.cdi”

This "ejects" any CD already in drive T (the ' in e' is an optional apostrophe used to tell it to continue after any errors - like no CD mounted).

 

 

 


Click here to visit the Radio UserLand website. © Copyright 2003 Eric Hartwell.
Last update: 1/9/2003; 12:42:04 PM.
This theme is based on the SoundWaves (blue) Manila theme.