Avoiding Pop-Up Window Error Messages

A reader shares a tip for avoiding pop-up error messages when you alter the syntax of code that includes a cscript command.

Readers

September 24, 2002

1 Min Read
ITPro Today logo

In Jeffrey Yao's Reader to Reader tip "Refresh Database Objects," June 2002, InstantDoc ID 24600, the author describes the kinds of problems that can occur when objects in your database change over time. Yao suggests that a good way to solve these problems is to recompile the objects in the database that are associated with the problems.

Yao then presents the VBScript code that he uses to recompile objects. He includes three examples of syntax for refreshing objects, then warns readers that if you omit the cscript command in the syntax, error messages will appear in a pop-up window that you must close before the script can continue.

However, if you open a command window and run the command

cscript //H:CScript

cscript becomes the default script host. Then you can omit the cscript command from the syntax and avoid the pop-up window.

—Richard Siddaway
[email protected]

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like