Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Problem with WScript.Shell

6 posts in Objects Last posting was on 2003-06-02 18:17:16.0Z
Mark Jones Posted on 2003-06-02 15:38:42.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Mark Jones" <mjones@fortressmedical.com>
Subject: Problem with WScript.Shell
Date: Mon, 2 Jun 2003 10:38:42 -0500
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 66.62.24.106
Message-ID: <364_uinWiISKDHA.280@forums-1-dub>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-1-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:7440
Article PK: 734728

We have some clients where our PB application cannot instantiate the
WScript.Shell Ole Object.

We use the following code:

int ret
oleobject WshShell
WshShell = create oleobject
ret = WshShell.Connecttonewobject("WScript.Shell");

They are running Windows 2000 and have IE5 installed. On most machines it
runs fine which makes
me think that this ActiveX is not always installed with IE5 or there is a
security issue.

Any ideas?

Mark C. Jones


Roy Kiesler [TeamSybase] Posted on 2003-06-02 16:32:55.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Roy Kiesler [TeamSybase]" <SPAM_FREE_roy.kiesler@teamsybase.com>
Subject: Re: Problem with WScript.Shell
Date: Mon, 2 Jun 2003 12:32:55 -0400
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: host131.percussion.com 208.252.62.131
Message-ID: <364_O5EjsUSKDHA.315@forums-1-dub>
References: <364_uinWiISKDHA.280@forums-1-dub>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-1-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:7441
Article PK: 734727

Have you installed the Windows Scripting Host component? It does not ship
with Windows -- go to http://www.microsoft.com/scripting to get the latest
install.

--
<hopethishelps/>
Roy Kiesler [TeamSybase]
SDN CodeXchange -- http://codexchange.sybase.com

"Mark Jones" <mjones@fortressmedical.com> wrote in message
news:uinWiISKDHA.280@forums-1-dub...
> We have some clients where our PB application cannot instantiate the
> WScript.Shell Ole Object.
>
> We use the following code:
>
> int ret
> oleobject WshShell
> WshShell = create oleobject
> ret = WshShell.Connecttonewobject("WScript.Shell");
>
> They are running Windows 2000 and have IE5 installed. On most machines it
> runs fine which makes
> me think that this ActiveX is not always installed with IE5 or there is a
> security issue.
>
> Any ideas?
>
> Mark C. Jones
>
>


Mark Jones Posted on 2003-06-02 16:08:28.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Mark Jones" <mjones@fortressmedical.com>
Subject: Re: Problem with WScript.Shell
Date: Mon, 2 Jun 2003 11:08:28 -0500
Lines: 53
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 66.62.24.106
Message-ID: <364_#DatMbSKDHA.275@forums-2-dub>
References: <364_uinWiISKDHA.280@forums-1-dub> <364_O5EjsUSKDHA.315@forums-1-dub>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-2-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:7442
Article PK: 734732

Thanks for the info Roy,

I figured it might not always be automatically installed. Since I have
novice users installing our application
on machines with a relatively unknown state I think I should veer away from
using WScript.Shell. That is unless I can provide the components I need
with my application install CD? It is not clear from the MS web site
whether this is possible.

Any ideas,

Mark Jones

"Roy Kiesler [TeamSybase]" <SPAM_FREE_roy.kiesler@teamsybase.com> wrote in
message news:O5EjsUSKDHA.315@forums-1-dub...
> Have you installed the Windows Scripting Host component? It does not ship
> with Windows -- go to http://www.microsoft.com/scripting to get the latest
> install.
>
> --
> <hopethishelps/>
> Roy Kiesler [TeamSybase]
> SDN CodeXchange -- http://codexchange.sybase.com
>
> "Mark Jones" <mjones@fortressmedical.com> wrote in message
> news:uinWiISKDHA.280@forums-1-dub...
> > We have some clients where our PB application cannot instantiate the
> > WScript.Shell Ole Object.
> >
> > We use the following code:
> >
> > int ret
> > oleobject WshShell
> > WshShell = create oleobject
> > ret = WshShell.Connecttonewobject("WScript.Shell");
> >
> > They are running Windows 2000 and have IE5 installed. On most machines
it
> > runs fine which makes
> > me think that this ActiveX is not always installed with IE5 or there is
a
> > security issue.
> >
> > Any ideas?
> >
> > Mark C. Jones
> >
> >
>
>


Roy Kiesler [TeamSybase] Posted on 2003-06-02 17:48:00.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Roy Kiesler [TeamSybase]" <SPAM_FREE_roy.kiesler@teamsybase.com>
Subject: Re: Problem with WScript.Shell
Date: Mon, 2 Jun 2003 13:48:00 -0400
Lines: 84
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: host131.percussion.com 208.252.62.131
Message-ID: <364_u1sfp#SKDHA.220@forums-1-dub>
References: <364_uinWiISKDHA.280@forums-1-dub> <364_O5EjsUSKDHA.315@forums-1-dub> <364_#DatMbSKDHA.275@forums-2-dub>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-1-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:7443
Article PK: 734730

Looking at the license, I see the following:

1. GRANT OF LICENSE.
a. This EULA grants you the right to install and use one copy of the
SOFTWARE PRODUCT on a single computer.
b. Redistributable Components. Provided that you comply with Section
1.c., in addition to the rights granted in Section 1.a., Microsoft grants
you a nonexclusive, royalty-free right to reproduce and distribute the
object code version of the following files located in the SOFTWARE PRODUCT
(the "Redistributables"): jscript.dll (contained only in Microsoft
JScript), vbscript.dll, scrobj.dll, scrrun.dll, dispex.dll, cscript.exe,
wscript.exe, wshom.ocx, wshext.dll, wshcon.dll and the installation
executable (scripten.exe, scr56en.exe or ste56en.exe).

There's more to read, but it looks like you can include the WSH DLLs (or
even the entire install) in your app installation routine.

--
<hopethishelps/>
Roy Kiesler [TeamSybase]
SDN CodeXchange -- http://codexchange.sybase.com

"Mark Jones" <mjones@fortressmedical.com> wrote in message
news:%23DatMbSKDHA.275@forums-2-dub...
> Thanks for the info Roy,
>
> I figured it might not always be automatically installed. Since I have
> novice users installing our application
> on machines with a relatively unknown state I think I should veer away
from
> using WScript.Shell. That is unless I can provide the components I need
> with my application install CD? It is not clear from the MS web site
> whether this is possible.
>
> Any ideas,
>
> Mark Jones
>
>
> "Roy Kiesler [TeamSybase]" <SPAM_FREE_roy.kiesler@teamsybase.com> wrote in
> message news:O5EjsUSKDHA.315@forums-1-dub...
> > Have you installed the Windows Scripting Host component? It does not
ship
> > with Windows -- go to http://www.microsoft.com/scripting to get the
latest
> > install.
> >
> > --
> > <hopethishelps/>
> > Roy Kiesler [TeamSybase]
> > SDN CodeXchange -- http://codexchange.sybase.com
> >
> > "Mark Jones" <mjones@fortressmedical.com> wrote in message
> > news:uinWiISKDHA.280@forums-1-dub...
> > > We have some clients where our PB application cannot instantiate the
> > > WScript.Shell Ole Object.
> > >
> > > We use the following code:
> > >
> > > int ret
> > > oleobject WshShell
> > > WshShell = create oleobject
> > > ret = WshShell.Connecttonewobject("WScript.Shell");
> > >
> > > They are running Windows 2000 and have IE5 installed. On most
machines
> it
> > > runs fine which makes
> > > me think that this ActiveX is not always installed with IE5 or there
is
> a
> > > security issue.
> > >
> > > Any ideas?
> > >
> > > Mark C. Jones
> > >
> > >
> >
> >
>
>


Mark Jones Posted on 2003-06-02 18:05:06.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Mark Jones" <mjones@fortressmedical.com>
Subject: Re: Problem with WScript.Shell
Date: Mon, 2 Jun 2003 13:05:06 -0500
Lines: 93
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 66.62.24.106
Message-ID: <364_eBgahETKDHA.220@forums-1-dub>
References: <364_uinWiISKDHA.280@forums-1-dub> <364_O5EjsUSKDHA.315@forums-1-dub> <364_#DatMbSKDHA.275@forums-2-dub> <364_u1sfp#SKDHA.220@forums-1-dub>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums-1-dub.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:7444
Article PK: 734731

Roy,
Thanks for the info!

Mark Jones

"Roy Kiesler [TeamSybase]" <SPAM_FREE_roy.kiesler@teamsybase.com> wrote in
message news:u1sfp#SKDHA.220@forums-1-dub...
> Looking at the license, I see the following:
>
> 1. GRANT OF LICENSE.
> a. This EULA grants you the right to install and use one copy of the
> SOFTWARE PRODUCT on a single computer.
> b. Redistributable Components. Provided that you comply with Section
> 1.c., in addition to the rights granted in Section 1.a., Microsoft grants
> you a nonexclusive, royalty-free right to reproduce and distribute the
> object code version of the following files located in the SOFTWARE PRODUCT
> (the "Redistributables"): jscript.dll (contained only in Microsoft
> JScript), vbscript.dll, scrobj.dll, scrrun.dll, dispex.dll, cscript.exe,
> wscript.exe, wshom.ocx, wshext.dll, wshcon.dll and the installation
> executable (scripten.exe, scr56en.exe or ste56en.exe).
>
> There's more to read, but it looks like you can include the WSH DLLs (or
> even the entire install) in your app installation routine.
>
> --
> <hopethishelps/>
> Roy Kiesler [TeamSybase]
> SDN CodeXchange -- http://codexchange.sybase.com
>
> "Mark Jones" <mjones@fortressmedical.com> wrote in message
> news:%23DatMbSKDHA.275@forums-2-dub...
> > Thanks for the info Roy,
> >
> > I figured it might not always be automatically installed. Since I have
> > novice users installing our application
> > on machines with a relatively unknown state I think I should veer away
> from
> > using WScript.Shell. That is unless I can provide the components I need
> > with my application install CD? It is not clear from the MS web site
> > whether this is possible.
> >
> > Any ideas,
> >
> > Mark Jones
> >
> >
> > "Roy Kiesler [TeamSybase]" <SPAM_FREE_roy.kiesler@teamsybase.com> wrote
in
> > message news:O5EjsUSKDHA.315@forums-1-dub...
> > > Have you installed the Windows Scripting Host component? It does not
> ship
> > > with Windows -- go to http://www.microsoft.com/scripting to get the
> latest
> > > install.
> > >
> > > --
> > > <hopethishelps/>
> > > Roy Kiesler [TeamSybase]
> > > SDN CodeXchange -- http://codexchange.sybase.com
> > >
> > > "Mark Jones" <mjones@fortressmedical.com> wrote in message
> > > news:uinWiISKDHA.280@forums-1-dub...
> > > > We have some clients where our PB application cannot instantiate the
> > > > WScript.Shell Ole Object.
> > > >
> > > > We use the following code:
> > > >
> > > > int ret
> > > > oleobject WshShell
> > > > WshShell = create oleobject
> > > > ret = WshShell.Connecttonewobject("WScript.Shell");
> > > >
> > > > They are running Windows 2000 and have IE5 installed. On most
> machines
> > it
> > > > runs fine which makes
> > > > me think that this ActiveX is not always installed with IE5 or there
> is
> > a
> > > > security issue.
> > > >
> > > > Any ideas?
> > > >
> > > > Mark C. Jones
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Philip_Salgannik Posted on 2003-06-02 18:17:16.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Philip_Salgannik
Date: Mon, 2 Jun 2003 14:17:16 -0400
Subject: Re: Problem with WScript.Shell
Lines: 6
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_F0CC62451509ED4A0064754685256D39.00615D4D85256D39@webforums>
References: <364_uinWiISKDHA.280@forums-1-dub> <364_O5EjsUSKDHA.315@forums-1-dub>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.objects:7445
Article PK: 734733

According to Micro$oft (FWIW) :
Windows Script Host is built into Microsoft Windows 98, 2000, and
Millennium Editions.
The version of WSH in Windows 98, 2000, and Millennium Editions is either
version 1.0 or 2.0. You must upgrade to version 5.6 to get the new
features.