Hi All,

Can "WScript" be used in VB Script?

Thanks.
kd

RE: Using WScript in VB Script by kd

kd
Sat Mar 12 07:57:02 CST 2005

Let me make my question more specific. . Would I be able to use the following
in VB SCript?

WScript.ScriptFullName

kd

"kd" wrote:

> Hi All,
>
> Can "WScript" be used in VB Script?
>
> Thanks.
> kd

Re: Using WScript in VB Script by Joe

Joe
Sat Mar 12 08:04:19 CST 2005

"kd" <kd@discussions.microsoft.com> wrote in message
news:4475AF81-0D71-4AD7-8940-D2903DED312F@microsoft.com...
> Let me make my question more specific. . Would I be able to use the following
> in VB SCript?
>
> WScript.ScriptFullName
>
> kd
>
> "kd" wrote:
>
>> Hi All,
>>
>> Can "WScript" be used in VB Script?
>>
>> Thanks.
>> kd
Yes, if the script is being run under the Windows Script Host.

--

Joe (MVP)



Re: Using WScript in VB Script by kd

kd
Sat Mar 12 23:59:01 CST 2005

Thanks Joe for your response.

I am a newbie to the world of scripting. My question may sound
elementary...but, what is Windows Script Host. Is it an installable that
needs to be installed in the machine which runs the VB script?

Regards
kd.

"Joe Fawcett" wrote:

> "kd" <kd@discussions.microsoft.com> wrote in message
> news:4475AF81-0D71-4AD7-8940-D2903DED312F@microsoft.com...
> > Let me make my question more specific. . Would I be able to use the following
> > in VB SCript?
> >
> > WScript.ScriptFullName
> >
> > kd
> >
> > "kd" wrote:
> >
> >> Hi All,
> >>
> >> Can "WScript" be used in VB Script?
> >>
> >> Thanks.
> >> kd
> Yes, if the script is being run under the Windows Script Host.
>
> --
>
> Joe (MVP)
>
>
>

Re: Using WScript in VB Script by Brian

Brian
Sun Mar 13 01:13:54 CST 2005

kd wrote:
> Thanks Joe for your response.
>
> I am a newbie to the world of scripting. My question may sound
> elementary...but, what is Windows Script Host. Is it an installable that
> needs to be installed in the machine which runs the VB script?

Depends on what OS you are running. AFAIK, it is

1) Installed by default on XP and 2K, and
2) May be downloaded and installed on NT4/ME/98/95(?).

It is a pair of executables (wscript.exe and cscript.exe, windowed and
command line versions respectively) and associated files that "host" the
scripts, which may be written in vbscript, jscript, and possibly others
with which I am not personally familiar. I'm sure a look at the MSDN
docs would provide more information than [almost] anyone would want. =)

Re: Using WScript in VB Script by kd

kd
Sun Mar 13 05:03:01 CST 2005

I am uisng Windows XP. If I got you right, it means that, if I don't have
wscript.exe and cscript.exe on my system, then I won't be able to use WScript
object in my vb script file?

kd

"Brian Wolven" wrote:

> kd wrote:
> > Thanks Joe for your response.
> >
> > I am a newbie to the world of scripting. My question may sound
> > elementary...but, what is Windows Script Host. Is it an installable that
> > needs to be installed in the machine which runs the VB script?
>
> Depends on what OS you are running. AFAIK, it is
>
> 1) Installed by default on XP and 2K, and
> 2) May be downloaded and installed on NT4/ME/98/95(?).
>
> It is a pair of executables (wscript.exe and cscript.exe, windowed and
> command line versions respectively) and associated files that "host" the
> scripts, which may be written in vbscript, jscript, and possibly others
> with which I am not personally familiar. I'm sure a look at the MSDN
> docs would provide more information than [almost] anyone would want. =)
>

Re: Using WScript in VB Script by Joe

Joe
Sun Mar 13 08:36:35 CST 2005

"kd" <kd@discussions.microsoft.com> wrote in message
news:C04077A5-A8DB-49FA-98C0-F1130A9753CB@microsoft.com...
>I am uisng Windows XP. If I got you right, it means that, if I don't have
> wscript.exe and cscript.exe on my system, then I won't be able to use WScript
> object in my vb script file?
>
> kd
>
> "Brian Wolven" wrote:
>
>> kd wrote:
>> > Thanks Joe for your response.
>> >
>> > I am a newbie to the world of scripting. My question may sound
>> > elementary...but, what is Windows Script Host. Is it an installable that
>> > needs to be installed in the machine which runs the VB script?
>>
>> Depends on what OS you are running. AFAIK, it is
>>
>> 1) Installed by default on XP and 2K, and
>> 2) May be downloaded and installed on NT4/ME/98/95(?).
>>
>> It is a pair of executables (wscript.exe and cscript.exe, windowed and
>> command line versions respectively) and associated files that "host" the
>> scripts, which may be written in vbscript, jscript, and possibly others
>> with which I am not personally familiar. I'm sure a look at the MSDN
>> docs would provide more information than [almost] anyone would want. =)
>>
You will have use of it unless you've uninstalled it or it's disabled. If you
run a stand-alone script, a .js, .vbs or .wsf file then you'll almost certainly
be using it. If you run scripts in a web page then you won't.


--

Joe (MVP)



Re: Using WScript in VB Script by Torgeir

Torgeir
Sun Mar 13 11:38:34 CST 2005

Brian Wolven wrote:

> kd wrote:
>
>> Thanks Joe for your response.
>>
>> I am a newbie to the world of scripting. My question may sound
>> elementary...but, what is Windows Script Host. Is it an installable
>> that needs to be installed in the machine which runs the VB script?
>
>
> Depends on what OS you are running. AFAIK, it is
>
> 1) Installed by default on XP and 2K, and
> 2) May be downloaded and installed on NT4/ME/98/95(?).
Hi,

Also installed by default on Windows ME.

Also note that IE5, IE5.5 and IE6 will install WSH, so if you have IE5
or newer installed, WSH will be in place for NT4/98/95 (IE6 installs
WSH 5.6).


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx