Is WSC Right for You?
There are many ways to write reusable code. You can use binary code or scripting code. If you use scripting code, you can choose to import subroutines, use writable objects, or use Windows Script Components (WSC). Here's a quick look at each of these approaches and their pros and cons.
Scripting Code vs. Binary Code
Scripting code and binary code both have advantages and disadvantages. The main advantage of using binary code is faster performance. Scripting code is interpreted, whereas binary code is compiled. Executing compiled code is inherently faster than executing interpreted code.
The main advantage of using scripting code is that it's well-suited for code prototyping because you write scripting code in a text-based file. You can quickly create a script file, but more important, you can easily change its code. You just make the necessary changes then save the file-you don't have to recompile the code before you test the changes. Once you're happy with how the scripting code works, you can easily port it to a compiled format in Visual Basic (VB). . . .