A Windows Vista forum. Vista Banter

Welcome to Vista Banter.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Go Back   Home » Vista Banter forum » Microsoft Windows Vista » Security and Windows Vista
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Security and Windows Vista A forum for discussion on security issues with Windows Vista. (microsoft.public.windows.vista.security)

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



 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old February 17th 09, 04:57 PM posted to microsoft.public.windows.vista.security
Jeff[_17_]
external usenet poster
 
Posts: 20
Default 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

  #2 (permalink)  
Old February 23rd 09, 07:45 PM posted to microsoft.public.windows.vista.security
Jeff[_17_]
external usenet poster
 
Posts: 20
Default how to get permission for Shell.Application in JScript in local files (file://...html)?


"Jeff" wrote in message
...
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"

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:15 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.Search Engine Optimization by vBSEO 3.0.0 RC6
Copyright ©2004-2024 Vista Banter.
The comments are property of their posters.