Re: Looking for "Terminate Event" in Windows Script Components???

From: Gerry Hickman (gerry666uk_at_yahoo.co.uk)
Date: 02/06/05


Date: Sun, 06 Feb 2005 01:10:35 +0000

Hi Al,

> Well, the class wouldn't be called (it's not a subroutine), but used to
> instantiate objects based on the class (somehow I think you know of these
> basics). The "packaged" (the OP's term) script (i.e. the .wsf file) would be
> called (invoked, run) in the usual manner.

What is the "usual manner"? Bear in mind the "packaged script" is in a
separate file?

>> I'm trying to
>>think in terms of how command line parameters would be passed and
>>validated to these packages...
>
> By the usual methods.

Hehe, that's what I'm trying to understand. This is a separate file
right (?) so would it have <script> tags referencing the "packaged" file
in the calling file, or would it be called from the CMD line?

The reason I ask is that there's a difference between "packaging"
something that can merely be "run" by supplying command line paramaters
and "packaging" something using <script> tags in the caller, because in
the latter case you'd need to make direct calls into Subs or Functions
the packaged script. In the former case the packaged script would run as
a separate process, but in the latter case it's merely shared blocks of
code...

> The advantage of registering a WSC is that referencing scripts need not know
> the name or location of the actual code. The name and location of an updated
> copy could even be different without having to modify the referencing
> scripts in any way. The disadvantage of using an unregistered WSC is that
> referencing scripts need to know the name or location of the actual code.

OK.

-- 
Gerry Hickman (London UK)


Relevant Pages

  • Re: Gnuplot 4.2: Animated GIFs
    ... I am a bit confused about the demo script at the Gnuplot site, ... out they call a separate file "gnuplot.rot". ... All of these demos are distributed with gnuplot, ... "Are you trying to make a plot like the one at URL? ...
    (comp.graphics.apps.gnuplot)
  • Re: Samba Q?
    ... Since Samba is an SMB server, and cifs an SMB client, I have no idea ... However, if I cat the line from the file, copy & paste it but without the passwd portion and exec it, it then asks me for it, and its fine with that long a passwd from the interactive shell. ... Why can't I put it in the script? ... user and password stored in a separate file? ...
    (Fedora)
  • Re: Where is ifconfig in SuSe 10.1?
    ... I once was also interested in learning about this, ... Packaging a script is about the easiest thing ... It wouldn't require a %build section, the %install section ...
    (alt.os.linux.suse)
  • Re: script callng created function within the script
    ... If you make your function B a separate file called ... functionname.m you will not have this trouble. ... Otherwise make script A a function - ... I tried to add the line with load, ...
    (comp.soft-sys.matlab)
  • Re: Design Model Question
    ... this architecture is one of the leading ... > The proper way to share code between script is to enclose it in functions, ... > keep these in an separate file, include it where it's needed, then call ... A single entry point architecture is sometimes known as a Front Controller ...
    (comp.lang.php)