Ask a Question related to ASP.NET, Design and Development.
-
Mike John #1
Error:: Activex componet can not create object:"WScript.Shell"
I am trying to use the shell object to send keys to the
explorer browser to run the send page funcion.
I am receiving the above error only when I put my html
file in the web server folder.However if I am runing the
file local it will work
Any reason, why when the file is in the web server folder
the create object failed to created the shell object.
Systax:
<html>
<head>
<body>
<Form name = myform>
<input type = button onclick = "Sendmy()" value
= "Axiolog Email">
</form>
</body>
</head>
<script langauage = "Javascript">
function Sendmxy()
{
alert("ASDFSA")
var wshell = WScript.CreateObject("WScript.Shell")
}
</script>
<SCRIPT Language=VBScript>
Sub Sendmy()
Dim WshShell
dim intloop
dim intCount
dim intc
Set WshShell = CreateObject("WScript.Shell")
alert("Yes")
WshShell.SendKeys("%(T)")
WshShell.SendKeys("+(M)")
WshShell.SendKeys("+(M)")
WshShell.SendKeys("+(P)")
End Sub
</SCRIPT>
</Html>
sincerely yours
Mike John
Mike John Guest
-
Calling Acrobat file from WScript.Shell ActiveX object
WinXP, Acrobat 6 When I type the name of a PDF file at the Windows command prompt, the file opens properly. Then I create the following JavaScript... -
VB runtime errors "ActiveX can't create object"
How is the VB component compiled? Using 'unattended execution'? -- compatible web farm Session replacement for Asp and Asp.Net... -
HELP! "Access is denied to this object." - Server object error 'ASP 0178 : 80070005'
Hi, When I try to do Server.CreateObject on an activeX DLL, I receive the following message: ''''''''''''''''''''''' Server object error 'ASP... -
server.createObject("wscript.shell") ... wShell.run ... stopped working...
I used to be able to run the following ASP code on our corp machine (W2K Server Edition and IIS-5) and successfully send a net-msg to anyone on our... -
server.createobject("wscript.shell")
How about: set wshell = server.createobject("wscript.shell") wshell.run "c:\file.bat " & x set wshell = nothing And then in your batch, use... -
Steve C. Orr, MCSD #2
Re: Error:: Activex componet can not create object:"WScript.Shell"
Browser security settings may be hampering your attempts. To get it to
work, the setting you'll most likely need to adjust can be found on the
Internet Options dialog under the Tools dropdown menu in Internet Explorer.
Go to the security tab. With local Intranet selected (assuming this is an
intranet app), click the "Customize Level." button. Find the setting titled
"Initialize and script ActiveX controls not marked as safe" and change the
selection to either "enable" or "prompt."
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"Mike John" <RiadeAsleh@hotmail.com> wrote in message
news:0dff01c34743$c9a41320$a001280a@phx.gbl...> I am trying to use the shell object to send keys to the
> explorer browser to run the send page funcion.
>
> I am receiving the above error only when I put my html
> file in the web server folder.However if I am runing the
> file local it will work
> Any reason, why when the file is in the web server folder
> the create object failed to created the shell object.
>
> Systax:
> <html>
> <head>
> <body>
> <Form name = myform>
> <input type = button onclick = "Sendmy()" value
> = "Axiolog Email">
> </form>
> </body>
> </head>
> <script langauage = "Javascript">
> function Sendmxy()
> {
> alert("ASDFSA")
> var wshell = WScript.CreateObject("WScript.Shell")
>
>
> }
>
> </script>
>
>
> <SCRIPT Language=VBScript>
>
> Sub Sendmy()
>
>
>
> Dim WshShell
> dim intloop
> dim intCount
> dim intc
> Set WshShell = CreateObject("WScript.Shell")
> alert("Yes")
>
> WshShell.SendKeys("%(T)")
>
>
>
>
> WshShell.SendKeys("+(M)")
>
> WshShell.SendKeys("+(M)")
> WshShell.SendKeys("+(P)")
>
>
>
> End Sub
>
> </SCRIPT>
>
>
> </Html>
>
>
> sincerely yours
>
>
> Mike John
Steve C. Orr, MCSD Guest
-
CT #3
Re: Error:: Activex componet can not create object:"WScript.Shell"
I would assume that your problem has to do with permissions on the server.
--
Carsten Thomsen
Enterprise Development with Visual Studio .NET, UML, and MSF
[url]http://www.apress.com/book/bookDisplay.html?bID=105[/url]
"Mike John" <RiadeAsleh@hotmail.com> wrote in message
news:0dff01c34743$c9a41320$a001280a@phx.gbl...> I am trying to use the shell object to send keys to the
> explorer browser to run the send page funcion.
>
> I am receiving the above error only when I put my html
> file in the web server folder.However if I am runing the
> file local it will work
> Any reason, why when the file is in the web server folder
> the create object failed to created the shell object.
>
> Systax:
> <html>
> <head>
> <body>
> <Form name = myform>
> <input type = button onclick = "Sendmy()" value
> = "Axiolog Email">
> </form>
> </body>
> </head>
> <script langauage = "Javascript">
> function Sendmxy()
> {
> alert("ASDFSA")
> var wshell = WScript.CreateObject("WScript.Shell")
>
>
> }
>
> </script>
>
>
> <SCRIPT Language=VBScript>
>
> Sub Sendmy()
>
>
>
> Dim WshShell
> dim intloop
> dim intCount
> dim intc
> Set WshShell = CreateObject("WScript.Shell")
> alert("Yes")
>
> WshShell.SendKeys("%(T)")
>
>
>
>
> WshShell.SendKeys("+(M)")
>
> WshShell.SendKeys("+(M)")
> WshShell.SendKeys("+(P)")
>
>
>
> End Sub
>
> </SCRIPT>
>
>
> </Html>
>
>
> sincerely yours
>
>
> Mike John
CT Guest



Reply With Quote

