Why Use WSF
Scripting languages such as
VBScript and JScript suffer from the lack of directives like #include or Use.
As a consequence of this it is
not possible to create large projects because it is not possible
to split the script code to more logical units, separate files.
Also, it is not possible to develop code libraries - reusable
parts of the code.
Script File can combine
more scripts to one project, WSF file. The WSF file can either
reference external script files (such as *.vbs, *.js), or contain
the scripts. The first is convenient for code libraries, the
latter for the project-specific code.
If the project should contain more
tasks it is possible to group the scripts to separate jobs. It is
possible to run one job of the project, or more jobs at a time.
WSF file can be directly executed
by the Windows Script Host.
Is WSF, Overview