Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Sat, 8 Apr 2006 18:29:34 -0400,    group: microsoft.public.inetsdk.programming.scripting.jscript        back       


Invoking executable from within IE6   
Hello,
I used java script to start executable from within IE 5 (kiosk mode).
After changing to IE 6, the code does not work any more.
Please see below:
//=========================
<!-- Begin
function variDoIt(DoIt){
   flag = 1;
 var wsh = new ActiveXObject('WScript.Shell');
 var acceptedChar = new String("0123456789") ;
 var str1 = document.forms("f1").T1.value;
 var digitsOnly=""
  var i = 0;

   for (i=0 ; i<str1.length; i++)
   {
     if ( acceptedChar.indexOf(str1.charAt(i))!= -1 )
     {
        digitsOnly=digitsOnly+str1.charAt(i);
     }
   }
   wsh.Run('"c:\\Program Files\\MyProg\\myprog.exe"/' + digitsOnly);
}
//===============================
Is there any other way to start executable from IE 6?
Your thoughts please,
Jack
date: Sat, 8 Apr 2006 18:29:34 -0400   author:   Jack notreplyto@it

Re: Invoking executable from within IE6   
"Jack" <notreplyto@it> wrote in message
news:OulDnv1WGHA.4920@TK2MSFTNGP02.phx.gbl
> I used java script to start executable from within IE 5 (kiosk mode).
> After changing to IE 6, the code does not work any more.

If you don't care about security, go to Tools | Internet Options | 
Security, select a zone your pages are running in, click Custom Level 
and set "Initialize and script ActiveX controls not marked as safe" to 
Enable
-- 
With best wishes,
    Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not 
necessarily a good idea. It is hard to be sure where they are going to 
land, and it could be dangerous sitting under them as they fly 
overhead. -- RFC 1925
date: Sat, 8 Apr 2006 23:42:37 -0400   author:   Igor Tandetnik

Re: Invoking executable from within IE6   
Thank you.
Does it mean there is not another method of executing executable from IE 6 
without changing default settings?
Jack

"Igor Tandetnik"  wrote in message 
news:%23jKwle4WGHA.4148@TK2MSFTNGP03.phx.gbl...
> "Jack" <notreplyto@it> wrote in message
> news:OulDnv1WGHA.4920@TK2MSFTNGP02.phx.gbl
>> I used java script to start executable from within IE 5 (kiosk mode).
>> After changing to IE 6, the code does not work any more.
>
> If you don't care about security, go to Tools | Internet Options | 
> Security, select a zone your pages are running in, click Custom Level and 
> set "Initialize and script ActiveX controls not marked as safe" to Enable
> -- 
> With best wishes,
>    Igor Tandetnik
>
> With sufficient thrust, pigs fly just fine. However, this is not 
> necessarily a good idea. It is hard to be sure where they are going to 
> land, and it could be dangerous sitting under them as they fly 
> overhead. -- RFC 1925
>
date: Sun, 9 Apr 2006 13:22:25 -0400   author:   Jack notreplyto@it

Re: Invoking executable from within IE6   
That's correct. Think of the havoc hackers could wreak otherwise ...

 Of course, you could create an HTA instead (look it up at 
msdn.microsoft.com/library)

Jack wrote:
> Thank you.
> Does it mean there is not another method of executing executable from
> IE 6 without changing default settings?
> Jack
>
> "Igor Tandetnik"  wrote in message
> news:%23jKwle4WGHA.4148@TK2MSFTNGP03.phx.gbl...
>> "Jack" <notreplyto@it> wrote in message
>> news:OulDnv1WGHA.4920@TK2MSFTNGP02.phx.gbl
>>> I used java script to start executable from within IE 5 (kiosk
>>> mode). After changing to IE 6, the code does not work any more.
>>
>> If you don't care about security, go to Tools | Internet Options |
>> Security, select a zone your pages are running in, click Custom
>> Level and set "Initialize and script ActiveX controls not marked as
>> safe" to Enable --
>> With best wishes,
>>    Igor Tandetnik
>>
>> With sufficient thrust, pigs fly just fine. However, this is not
>> necessarily a good idea. It is hard to be sure where they are going
>> to land, and it could be dangerous sitting under them as they fly
>> overhead. -- RFC 1925

-- 
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
date: Sun, 9 Apr 2006 15:05:11 -0400   author:   Bob Barrows [MVP] com

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us