Results 1 to 7 of 7

Thread: Running executables from IE...

  1. #1
    Banned
    Join Date
    Jul 2004
    Location
    Blackpool
    Posts
    983
    Thanks
    15
    Thanked
    38 times in 20 posts

    Running executables from IE...

    Ok, I know. Not the kind of thing you'd like a website to be doing. And that's not what i'm trying to do.

    What I am trying to do is find out if I can make IE interface/run dialer.exe (Telephony app in windows) IF i was able to set the security permissions for the machine it runs on.

    Basically the staff at the company use a customer management system via IE (PHP coded), but the dialer program is seperate and is an MS Access app. If i could integrate it into the IE program then I would.

    Is it possible? I am able to edit the security and restriction settings if it makes a difference.

  2. #2
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,168
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts
    damnit, lost what i'd written (silly wireless network!)

    Okay, you can use a hyperlink to file://

    you can use the object to an exe (like you would an active x object)

    you can use an active x object, which you get signed to do it for you. This is the proper way.
    throw new ArgumentException (String, String, Exception)

  3. #3
    www.5lab.co.uk
    Join Date
    Sep 2003
    Posts
    6,406
    Thanks
    1
    Thanked
    0 times in 0 posts
    you could do it in java i recon
    hughlunnon@yahoo.com | I have sigs turned off..

  4. #4
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,168
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts
    you'd need to use the Microsoft API's to access shellexecute.

    i wouldn't ever recomend doing it in java.

    you could use vb/java script however, the shell object would let you run it. Thats a good idea actually.
    throw new ArgumentException (String, String, Exception)

  5. #5
    Banned
    Join Date
    Jul 2004
    Location
    Blackpool
    Posts
    983
    Thanks
    15
    Thanked
    38 times in 20 posts
    Thanks for the reply, although I know nothing about how i would run something via ActiveX... I have never even touched anything activex so maybe an easy reference script would help.

    Anyway, whilst researching, i've found an application which will run the dialer.exe program from the command prompt so i can add phone numbers via cmd.exe (Eg: dial.exe 0800000000 [Customer Name])

    SO, basically now what I am looking for is a way to execute a command as i would in cmd.exe from internet explorer when clicking a button.



    Edit:
    Code:
    <html>
     <head>
      <title>Test Enviroment</title>
      <script language="JScript">
        function fnShellExecuteJ()
        {
            var objShell = new ActiveXObject("Shell.Application");
            
            objShell.ShellExecute("dial.exe", " 070000000 [Customer name]", "C:/", "open", 1);
        }
      </script>
     </head>
     <body>
      <input type='button' onclick='fnShellExecuteJ()' value='Test Dialer'>
     </body>
    </html>
    The code seems to be ok, however i'm getting a Javascript 'Permission Denied' error.
    Last edited by Michael; 22-09-2005 at 07:07 PM.

  6. #6
    Banned
    Join Date
    Jul 2004
    Location
    Blackpool
    Posts
    983
    Thanks
    15
    Thanked
    38 times in 20 posts
    Bingo. Got it. Needed to edit securty settings, but as stated I can already do this.

    Thanks theanimus for the shellexecute reference, got me there

  7. #7
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,168
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts
    np, was the sugestion to use java that made me think of javascript, can't think how i forgot about the Shell object! (doh!)
    throw new ArgumentException (String, String, Exception)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. P4 3GHz - Running Temp?
    By tezmondo in forum PC Hardware and Components
    Replies: 8
    Last Post: 08-04-2005, 12:02 PM
  2. cpu running at wrong speed!
    By chet in forum PC Hardware and Components
    Replies: 4
    Last Post: 25-03-2005, 11:12 AM
  3. Running and stamina
    By Kezzer in forum General Discussion
    Replies: 18
    Last Post: 16-01-2005, 03:49 PM
  4. 1800+ running at 1.1ghz
    By atifds9 in forum PC Hardware and Components
    Replies: 10
    Last Post: 11-12-2003, 07:49 PM
  5. p4 2.8 800fsb retail running very hot?
    By _bobby in forum PC Hardware and Components
    Replies: 5
    Last Post: 23-09-2003, 06:35 PM

Posting Permissions

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