WSF files and function calls...



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?

====================

<?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...

.



Relevant Pages

  • WSF file and function calls...
    ... I have a WSF script file that I'm working on that goes something like ... I am trying to make a function call in a VBScript block where the ... 'ShowUses' ". ...
    (microsoft.public.scripting.vbscript)
  • Re: WSF files and function calls...
    ... using GetFolder object instead of a passed string folderSpec. ... I am trying to make a function call in a VBScript block where the ... 'ShowUses' ". ... Put the script element that defines called functions *before* (in source ...
    (microsoft.public.scripting.wsh)
  • Re: WSF file and function calls...
    ... Blue Streak wrote: ... I have a WSF script file that I'm working on that goes something like ... I am trying to make a function call in a VBScript block where the ... 'ShowUses' ". ...
    (microsoft.public.scripting.vbscript)