Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Opening Programs From Internet Explorer

    Is there anyway that you can bypass the security screen attached to this message!?
    I am trying to create a small Intranet system and from this I need to open certain applications such as the Microsoft Office Programs, but Internet Explorer keeps coming up with this message no matter what I try as it is an *.exe file. I have tried creating a shortcut to the exe file but it brings up the same box!
    Any ideas!?
    Cheers
    Paul
    Attached Thumbnails Attached Thumbnails Opening Programs From Internet Explorer-dialog-box.jpg  

  • #2
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Associate file extension with program

    Use Explorer to associate .abc with your program ABC. Then send a .abc file to the user through the browser and your ABC program will start.

  • #3
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try this:

    Code:
    <script type="text/javascript">
    var launch = new ActiveXObject('Shell.Application');
    </script>
    </head>
    
    <body>
    <a href="javascript&#58;launch.ShellExecute('wkswp.exe', '', 'C:\\Program Files\\Microsoft Works');">Microsoft Word</a><br>
    in: "C:\Program Files\Microsoft Works\"
    .....Willy

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    Do you want to open Word documents?

    <a href="myfile.doc">Open myfile.doc</a>

    That will open the document in MS Word that is merged inside IE window.

  • #5
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    using HTAs for intranets (providing it is Win only) will get over security issues.

  • #6
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you're using IE, you can go to Tools->Internet Options->Security and I think you can configure the sites on your local intranet to have ActiveX security on Low or disabled. You can do that for all the computers on your intranet that will use your system.

    Now you have plenty of options! Hopefully one of them works out for you.

    Good luck,
    Sadiq.

  • #7
    Regular Coder
    Join Date
    Feb 2003
    Posts
    638
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well, just to add another option to the list, components of the "Microsoft Internet Controls" library are insertable; namely, the ShellNameSpace object (a.k.a. the Favorites menu)--which can be scripted to load your own custom directory of shortcuts, etc.
    hmm... ?

  • #8
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    how do you mean, swmr?

  • #9
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool

    Thanks Guys!!
    I used theShellExecute Script!! It works well on the single HTML page, but where I am using frames it gets a bit messed up and gives errors!
    To use the script with frames it Opens the target as "_Parent"
    Cheers Again!

  • #10
    Regular Coder
    Join Date
    Feb 2003
    Posts
    638
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by jbot
    how do you mean, swmr?
    The ShellNameSpace object has:

    1. a classid, which can be used with the <object> tag to insert the favorites tree menu within a document.

    2. a method "SetRoot" for setting a root folder for the menu.

    3. an event "FavoritesSelectionChange" with a parameter "cVisits" that returns a string.
    If the current menu selection is an Internet Shortcut (.url file), the url is returned; if the selection is another file type, such as a Shortcut (.lnk file), the path to the file itself (or a folder) is returned.

    4. a method "InvokeContextMenuCommand" which invokes a verb on the selected file.


    So, when the FavoritesSelectionChange event occurs, one can use an expression on the string (cVisits) to determine what to do with the menu item.
    For example, if the extension is IE-compatible, it can be opened in an iframe; if the extension is .lnk, using InvokeContextMenuCommand("open") will launch the shortcut in its associated application.

    Although, scripting the object will result in an ActiveX-warning dialog, unless used in an HTA.
    Last edited by swmr; 05-01-2004 at 09:45 AM.
    hmm... ?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •