borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Retrieving values from .INC file)Next Topic (capturing incoming and outgoing mails) New Topic New Poll Post Reply
AndreaVB Forum : Internet Applications : VBScript Error
Poster Message
siddhs
Level: Professor

Registered: 02-03-2003
Posts: 92

icon VBScript Error

Hi Guysss
  I am trying to work out the following script but it gives me an error :
--> ActiveX component cant create object :"Wscript.Shell"

Guys I am just testing it ...its not client-server application ..it just reads a particular key ...thats it ...its urgent ..can anyone help me ?? btw i am running Win XP.. I will write the code:

<HTML>
<HEAD>
<SCRIPT language="VBScript" type="text/VBScript">
Function getProxy()
dim sh,Mypath
set sh=CreateObject("WScript.Shell")
Mypath = sh.RegRead("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\path")
DefProxy = Mypath
WScript.echo DefProxy
document.write (DefProxy + "<br>")
End Function
</SCRIPT>
<TITLE>testing</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<BODY>
<TR> <TD><INPUT type = "button" value = "" name = "click here to create key" onClick = "Call getproxy()">
</BODY>
</HTML>

Waiting for reply,
Cheers
Siddhs   

____________________________
FireFox - Its Yours & Its Free
Here it is

45 Gmail Invities left ;) ....PM me to get one...

21-08-2004 at 04:25 AM
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon Re: VBScript Error

Hi,
Could be either WScript is not installed on the client, or could be security setting in XP (probably the latter).
Kieron


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

31-08-2004 at 12:47 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Internet Applications : VBScript Error
Previous Topic (Retrieving values from .INC file)Next Topic (capturing incoming and outgoing mails) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder