Jump to content

how to get permission for Shell.Application in JScript in local files (file://...html)?


Recommended Posts

Posted

When I try to use Shell.Application, e.g.

 

var objShell = new ActiveXObject("Shell.Application");

objShell.TrayProperties();

 

in JScript an html file on a local disk (accessed by file: instead of by

http:), I get a JScript error "permission denied". I tried changing the

security setting for "Local intranet" to Low, but that didn't make any

difference. I tried putting the file path into "Trusted Sites", but it told

me it only accepts https sites.

 

What do I need to do so that Internet Explorer will run Shell.Application

functions in a local html file?

 

Thanks,

Jeff

  • Replies 1
  • Created
  • Last Reply
Posted

"Jeff" <nomo@spam.net> wrote in message

news:ORkBPlSkJHA.4372@TK2MSFTNGP02.phx.gbl...<span style="color:blue">

> When I try to use Shell.Application, e.g.

>

> var objShell = new ActiveXObject("Shell.Application");

> objShell.TrayProperties();

>

> in JScript an html file on a local disk (accessed by file: instead of by

> http:), I get a JScript error "permission denied". I tried changing the

> security setting for "Local intranet" to Low, but that didn't make any

> difference. I tried putting the file path into "Trusted Sites", but it

> told me it only accepts https sites.

>

> What do I need to do so that Internet Explorer will run Shell.Application

> functions in a local html file?

>

> Thanks,

> Jeff

></span>

 

It's in Internet Options, Advanced, Security:

"Allow Active Content to run in files on My Computer"

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...