Re: Include a vbs file into another vbs file
- From: "Al Dunbar" <AlanDrub@xxxxxxxxxxxxxxxxxxx>
- Date: Sat, 26 Jan 2008 17:38:01 -0700
"mr_unreliable" <kindlyReplyToNewsgroup@xxxxxxxxxxx> wrote in message
news:uvJW3K3XIHA.3696@xxxxxxxxxxxxxxxxxxxxxxx
Jake wrote:
What is the syntax for including a vbs file in this scenario?
Jake, if you are willing to compromise your requirements
a bit, and use a "wsf" file instead of a vbs file, then
you may include other scripts with a "one-liner".
For example:
--- <code> ---
<?XML version="1.0" standalone="yes" encoding="iso-8859-1" ?>
<job id="demoWSF">
<comment> This "includes" the cbt hookingini code... </comment>
<script language="VBScript" src="incOpenFileDlgDeclarations.vbs"
></script>
<script language="VBScript">
<![CDATA[
' ===================
' your script goes here...
' ===================
]]>
</script>
</job>
--- </code> ---
As usual, you can find the documentation for a "wsf" file
in the scripting documentation.
Good advice to use a .wsf file. Our logon script is a .wsf that uses the
script tag to include files containing utility functions. We also use a
version of the "IncludeFile" subroutine to allow some site-specific
customization. One problem with IncludeFile is that routines loaded in that
manner can be difficult to debug. A further issue that we have been advised
of by a consultant from Microsoft is that there can be a significant amount
of overhead in terms of network traffic associated with processing separate
files located in the NETLOGON share, especially those that are in deeply
nested folder structures. If I had known that when I wrote the script, I
would have made it a bit more efficient by reducing the number of separate
files and simplifying how they are stored.
Anyway, it is not a problem for most of our users, but those coming in
through vpn connections and at sites with no DC wind up spending longer
waiting for the script to finish than they should have to.
/Al
cheers, jw
____________________________________________________________
You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)
.
- Follow-Ups:
- some further comments...
- From: mr_unreliable
- some further comments...
- References:
- Include a vbs file into another vbs file
- From: Jake
- Re: Include a vbs file into another vbs file
- From: mr_unreliable
- Include a vbs file into another vbs file
- Prev by Date: Re: usb write blocker
- Next by Date: Re: Change modified date of msg file to email recieved date
- Previous by thread: Re: Include a vbs file into another vbs file
- Next by thread: some further comments...
- Index(es):
Relevant Pages
|
Loading