Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista security

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

Reply
 
Old 02-17-2009   #1 (permalink)
Jeff


 
 

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

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


My System SpecsSystem Spec
Old 02-23-2009   #2 (permalink)
Jeff


 
 

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


"Jeff" <nomo@xxxxxx> wrote in message
news:ORkBPlSkJHA.4372@xxxxxx
Quote:

> 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
>
It's in Internet Options, Advanced, Security:
"Allow Active Content to run in files on My Computer"

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
shell.application throw error on asp file VB Script
shell.application VB Script
can shell.application do this? PowerShell
File Open and Write in JSCRIPT .NET General
Get-Drive.ps1 and Get-File.ps1 - Get all local files PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46