Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple script with error 800A01AD

Status
Not open for further replies.

kaul1jos

Technical User
Jan 5, 2001
76
0
0
NL
I'm running a simple vbscript on WinXP SP2:

const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set StdOut = WScript.StdOut
.......


On the 3rd line an error occurred
Script: c:\temp\read.vbs
Line: 3
Char: 1
Error: ActiveX component can't create object
Code: 800A01AD
Source: Microsoft VBScript Runtimeerror


Many examples on the internet use "WScript.StdOut" in there script. What's going wrong.


Please help!!!
 
HelpFile said:
The StdIn, StdOut, and StdErr streams can be accessed while using CScript.exe only. Attempting to access these streams while using WScript.exe produces an error.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
When I use cscript i got the following error:

c:\temp\read.vbs(3, 1) Runtimeerror Microsoft VBScript: ActiveX-component can't create object

Same problem...
 
Seems like a permission and/or security problem.
Have you administrative privileges when you run this script ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Hello kaul1jos,

With start | run, enter the command:
[tt]wscript -regserver[/tt]
see if it corrects the problem.

regards - tsuji
 
still not working after wscript -regserver
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top