SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
WSH not installed

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
WSH not installed
Author Message
Victor Neto



Joined: 03 Nov 2004
Posts: 17

Post WSH not installed Reply with quote

Hi

I have 24x7 installed on my machine.
I have SAS installed on my machine.

I tried running your SAS automation script replacing
the %include statement with a simple sas script.

I recieved the following error message:

An error occurred while executing automation script.
Processing Error #2
Script Control class name not found,
probally WSH is not installed.

Do you know what this means?


Wed Jan 19, 2005 12:00 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Re: WSH not installed Reply with quote

It means that Windows Scripting Host is not installed or configuration is invalid or disabled. Can you run .VBS files on your system?

: Hi

: I have 24x7 installed on my machine.
: I have SAS installed on my machine.

: I tried running your SAS automation script replacing
: the %include statement with a simple sas script.

: I recieved the following error message: An error occurred while executing
: automation script.
: Processing Error #2
: Script Control class name not found,
: probally WSH is not installed.

: Do you know what this means?

Wed Jan 19, 2005 2:46 pm View user's profile Send private message
Victor Neto



Joined: 03 Nov 2004
Posts: 17

Post Re: WSH not installed Reply with quote

: It means that Windows Scripting Host is not installed or configuration is
: invalid or disabled. Can you run .VBS files on your system?

I went to the microsoft website and I downloaded the
scripten.exe program and I ran it.

I opened up a dos window and I ran a small test vbs
file and it worked.


Wed Jan 19, 2005 3:38 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Re: WSH not installed Reply with quote

Try the following TEST.VBS file

'''''''''''''''''''''''
Option Explicit
Dim wsh, sc
Set wsh = CreateObject("WScript.Shell")
Set sc = CreateObject("ScriptControl")
sc.Language = "VBScript"
sc.AddCode("Function bar(s) : bar = s : End Function")
wsh.Popup(sc.Run("bar", "VBScript called"))
Set sc = nothing
Set wsh = nothing
'''''''''''''''''''''''

What do you get?

: Hi

: I have 24x7 installed on my machine.
: I have SAS installed on my machine.

: I tried running your SAS automation script replacing
: the %include statement with a simple sas script.

: I recieved the following error message: An error occurred while executing
: automation script.
: Processing Error #2
: Script Control class name not found,
: probally WSH is not installed.

: Do you know what this means?

Wed Jan 19, 2005 4:03 pm View user's profile Send private message
Victor Neto



Joined: 03 Nov 2004
Posts: 17

Post Re: WSH not installed Reply with quote


Hi Sysop,

I ran the script:

Line: 4
Char: 1
Error: Activex component can't create object: 'ScriptControl'

Source: Microsoft VBscript runtime error

Vic

=====================================================

: Try the following TEST.VBS file

: '''''''''''''''''''''''
: Option Explicit
: Dim wsh, sc
: Set wsh = CreateObject("WScript.Shell")
: Set sc = CreateObject("ScriptControl")
: sc.Language = "VBScript"
: sc.AddCode("Function bar(s) : bar = s : End Function")
: wsh.Popup(sc.Run("bar", "VBScript called"))
: Set sc = nothing
: Set wsh = nothing
: '''''''''''''''''''''''

: What do you get?

Wed Jan 19, 2005 4:10 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Re: WSH not installed Reply with quote

Something is wrong with msscript.ocx.

If you already have
dispex.dll, vbscript.dll and msscript.ocx in your Windows\system or Winnt\system32 directorytry registering msscript.ocx using RegSvr32.exe. Example:

Regsvr32.exe c:\windows\system32\msscript.ocx

If you don't have them run 24x7 full setup and it will install and register missing files.

: Hi Sysop,

: I ran the script: Line: 4
: Char: 1
: Error: Activex component can't create object: 'ScriptControl'

: Source: Microsoft VBscript runtime error

: Vic

: =====================================================

Wed Jan 19, 2005 5:13 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.