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

    executing .exe shell files

    I've recently agreed credit card processing facilities with my local bank(La Caixa - Cyberpac) who require me to call a locally situated .exe from my site. This then produces a URL with the submitted parameters (amount, currency, language etc.) and an id no. All works well locally as I can use the coldfusion tag <cfexecute>, unfortunately my web host (and all the others I know) disable the use of this tag. They also don't install the .net components required to use vbscript or asp.
    Does anyone know how to do this in Javascript? I have a good understanding of ECMA232 languages but don't know if this is possible or not.

    Any help would be much appreciated as I'm losing hair!

  • #2
    Super Moderator sage45's Avatar
    Join Date
    May 2002
    Posts
    1,064
    Thanks
    0
    Thanked 15 Times in 15 Posts
    You mean something like this:
    Code:
    <script language="JavaScript" type="text/javascript">
    <!--
    function runXL(xlFile)
    {
    	try {
    		var excel=new ActiveXObject('Excel.Application');
    		excel.Workbooks.Open(xlFile);
    		excel.visible=true;
    	} catch(e) {}
    }
    //-->
    </script>
    
    <a href="#" onclick="runXL('myfile.xls'); return false;">Test XLS</A>
    HTH,

    -sage-
    HTML & CSS Forum Moderator

    "If you don't know what you think you know, then what do you know."
    R.I.P. Derrick Thomas #58
    1/1/1967 - 2/8/2000

  • #3
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hey, Sage, I think he's talking about a serverside executable, not a browser-accessed one. if that's the case, CSJS isn't going to help much.

    however, it may b possible to adapt the method using SSJS or SSBVS within an ASP page which uses COM.
    *keep it simple (TM)


  •  

    Posting Permissions

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