Re: WSF files and function calls...



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



.



Relevant Pages

  • Re: WSF files and function calls...
    ... 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)
  • 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)
  • WSF files and function calls...
    ... 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 ... 'ShowUses' ". ...
    (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)

Loading