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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Aug 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up New Here, Need a little help...

    Hi All...

    Wonder if someone can point me in the right direction with this problem.
    Don't know a massive amount about Javascript but I'm learning so here goes...

    Firstly I wanted to find a way to launch an .exe file from disc via a webpage found this in the form of Launch in IE, for those not familiar with it, click here >>> http://www.whirlywiryweb.com/q%2Flaunchinie.asp

    This works very well & was easy to set up etc, the javascript is below...

    Code:
    <html>
    
    <script language="JavaScript">
      function launchApp(strCmdLine)
      {
        var obj = new ActiveXObject("LaunchinIE.Launch");
        obj.LaunchApplication(strCmdLine);
    
      }
    </script>
    
    <body>
    
    <a
    href="javascript:launchApp('f:\\myprog')">
    myprog Off Disc!</a>
    
    </body>
    
    </html>
    Simple & I understand that this works on my machine as F = my cd rom, but what I need to know is... Is there anything I can replace f:\\ with or add to any of the above so it will run on anyones machine???

    Hope This Makes Sense...
    Cheers In Advance
    Hijinx
    Last edited by mrhijinx; 08-13-2005 at 02:05 PM.

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    You need to use a prompt to ask them what their drive is.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    New to the CF scene
    Join Date
    Aug 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Quote Originally Posted by A1ien51
    You need to use a prompt to ask them what their drive is.

    Eric
    Cheers Eric...

    Any chance of any examples, not having much luck...

    Found this on here... http://www.codingforums.com/showthread.php?t=30637
    Could any of this be added to the above script in some way??

    Cheers Again
    Hijinx

  • #4
    New to the CF scene
    Join Date
    Aug 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi All,

    Is there anyone who can help on this one as need a solution fast

    Cheers
    Hijinx


  •  

    Posting Permissions

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