Windows Vista Forums

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


    Jeff Guest

    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

  2. #2


    Jeff Guest

    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

    > 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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
shell.application throw error on asp file rami4tis VB Script 0 22 Sep 2009
shell.application noobie VB Script 2 21 Aug 2009
can shell.application do this? James PowerShell 4 24 Jul 2009
File Open and Write in JSCRIPT Sedoshi7 .NET General 0 08 Feb 2009
Get-Drive.ps1 and Get-File.ps1 - Get all local files Roman Kuzmin PowerShell 0 14 Dec 2006