
Running WSH Script From ASP
Hello,
Sorry about the typo, yes Mark script was as you expected
Mike, I did mean 5.1 installed on all client machines that were not 98
or 2000.
so will IE5 security not apply to .hta files or have I read that wrong?
I tried again last night aand it worked! although I can find no reason
why it didn't before, just running client side vbscript in an asp page.
Anyway, It works now, I can use the company intranet to give users a
control panel to change their proxy settings, drive mappings etc etc!
Fantastic, thanks for your help
Quote:
-----Original Message-----
Posted At: 10 April 2000 16:31
Posted To: wsh
Conversation: Running WSH Script From ASP
Subject: Re: Run time error
"...with the host 5.1 installed on an intranet..."
I'm not sure what you mean by the above, but Window Script 5.1 needs to
be installed on the client.
--
Michael Harris
MVP Scripting
Hi Mike
I am trying yo run WSH scripts from a browser (IE4)NT workstation with
the host 5.1 installed on an intranet. I have set all the security
options as mentioned.. However..
When i simply write a piece of client side vbscript to initialise a
shell ie
set myshell = createobject= ("wscript.shell")
i get an error:
Error: Object doesn't support this property or method.
Is it the way I have installed WSH or something?
Thanks
-----Original Message-----
Posted At: 07 April 2000 19:59
Posted To: wsh
Conversation: Running WSH Script From ASP
Subject: Re: Running WSH Script From ASP
Only if you create an instance of the WScript.Shell object to use the
Run method...
To use the Shell object or any other "unsafe" ActiveX control in the
browser, *every* user has to
customize the relevant security zone to change the
"Initialize and script ActiveX controls not marked as safe"
option from Disable to Prompt or Enable. For the Intranet zone that
might be an acceptable thing to
do, but it's still the end user's choice.
You could avoid the security issues with an HTA (HTML Application)...
--
Michael Harris
MVP Scripting
Can anyone help, i wish to run a WSH script and pass a paramter to it
from
within an ASP file from a button 'on-click' event.
Cheers