Re: WSF files and function calls...
- From: "asdf" <asdf@xxxxxxxx>
- Date: Sun, 21 Jan 2007 09:16:50 -0500
Hi, to the rescue of using shorcut to elongate pathnames.
I got stuck on zacharys example and used your's (rediscoverd),
using GetFolder object instead of a passed string folderSpec.
Oh, well I guess it takes several tries, to get to a good behaving
feature to behave in all OSes now and in the future.
To all who suffer from human memory leak.
For all that was not yours. Make sure to look up other importants
where you discovered it first.
--------------
"Michael Harris (MVP)" <mikhar.at.mvps.dot.org> wrote in message
news:ut2w2ebOHHA.3916@xxxxxxxxxxxxxxxxxxxxxxx
Blue Streak wrote:
Hi, folks!
I have a WSF script that I'm working on that goes something like this:
I am trying to make a function call in a VBScript block where the
function has been defined in a JScript block. Naturally, I am getting
an error, "Variable is undefined: 'ShowUses' ". How can I make this
function call work, if possible?
Put the script element that defines called functions *before* (in source
file order) any script element that calls those functions.
====================
<?xml version="1.0" encoding="utf-8" ?>
<package>
<job id="Job1">
<script src="LibraryFile.vbs" language="VBScript" />
<script language="VBScript">
ShowUses() 'Call made here
</script>
<script language="JScript">
function ShowUses() //function defined here
{
...
}
</script>
</job>
</package>
====================
TIA...
--
Michael Harris
Microsoft.MVP.Scripting
.
- References:
- WSF files and function calls...
- From: Blue Streak
- Re: WSF files and function calls...
- From: Michael Harris \(MVP\)
- WSF files and function calls...
- Prev by Date: We are the greatest
- Next by Date: Re: We are the greatest
- Previous by thread: Re: WSF files and function calls...
- Next by thread: convert key=value to sgml
- Index(es):
Relevant Pages
|
Loading