From: CW on
Hi All,

I need to create a VBScript to run in a 3rd-party application which
does not support WScript.
Most of the ways in internet pass argument to VBScript via WScript.
Is there any other way to do so?

Thanks and Regards,
Cherry
From: Richard Mueller [MVP] on

"CW" <cherrywankf(a)gmail.com> wrote in message
news:0564083f-3c64-453f-864b-a26008612c38(a)a39g2000pre.googlegroups.com...
> Hi All,
>
> I need to create a VBScript to run in a 3rd-party application which
> does not support WScript.
> Most of the ways in internet pass argument to VBScript via WScript.
> Is there any other way to do so?
>
> Thanks and Regards,
> Cherry

I don't know of any method that does not use the Wscript object. Another
thought is to use a class, with Property Let and Property Get methods, but I
don't believe you can assign values from outside the script. You may be out
of luck.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


From: mr_unreliable on
CW wrote:
> I need to create a VBScript to run in a 3rd-party application which
> does not support WScript.
> Most of the ways in internet pass argument to VBScript via WScript.
> Is there any other way to do so?
>

hi Cherry,

It would be helpful if you gave us a little more detail
about how you are running the vbscript.

For example, are you using a "Microsoft Script Control"
to run the script, or maybe you are using the (shudder)
IActiveScript interface?

Since the application is 3rd-party, then maybe you don't
have the source code, which would make it even more
complicated...

If either the script control or the (shudder) IActiveScript
interface is being used, then I may be able to help.

If it is somebody else's code and you don't have the
source (a "black box") then the only way may be something
a responsible scripter wouldn't consider (like using the
system api).

cheers, jw