vscript files not working anymore

  • Thread starter Thread starter Rod
  • Start date Start date
R

Rod

I used to be able to run a defrag from a vscript file.
Now when I click on the icon I get this error message from "Windows Script
host".

Line: 3
Char: 1
Error: Could not create object named "Wscript.Shell".
Code: 8004011
Source: WScript.CreateObject

I have recently downloaded many Hotfixes and Windows update V4 .
 
| I used to be able to run a defrag from a vscript file.
| Now when I click on the icon I get this error message from "Windows Script
| host".
|
| Line: 3
| Char: 1
| Error: Could not create object named "Wscript.Shell".
| Code: 8004011
| Source: WScript.CreateObject
|
| I have recently downloaded many Hotfixes and Windows update V4 .

Rod,

Try this,

[Start]
| Run |
regsvr32 /u vbscript.dll
[Enter]

[Start]
| Run |
regsvr32 vbscript.dll
[Enter]
 
+-J said:
Rod said:
I used to be able to run a defrag from a vscript file.
Now when I click on the icon I get this error message from "Windows Script
host".

Line: 3
Char: 1
Error: Could not create object named "Wscript.Shell".

(snip)
regsvr32 vbscript.dll
[Enter]

Hi

It's generally better to just reinstall WSH 5.6 in these type of cases. Rod did
that, and it solved his problem:

http://groups.google.com/[email protected]
 
"Torgeir Bakken (MVP)"
| +-J wrote:
|
| >
| > > I used to be able to run a defrag from a vscript file.
| > > Now when I click on the icon I get this error message from "Windows Script
| > > host".
| > >
| > > Line: 3
| > >Char: 1
| > > Error: Could not create object named "Wscript.Shell".
| >
| > (snip)
| > regsvr32 vbscript.dll
| > [Enter]
|
| Hi
|
| It's generally better to just reinstall WSH 5.6 in these type of cases. Rod did
| that, and it solved his problem:
|
| http://groups.google.com/[email protected]

Hi Torgeir,

Thanks.
 
Back
Top