You can certainly take a Perl script, and turn it into an .exe file. I just ran a simple test using PerlApp to create a standalone executable out of a very simple Perl script. The fact that your browser is being passed an entire file for download means that your web server did not see the target file (YourScript.exe) as a file to be parsed/executed. You must make sure that your web server has been setup correctly (as Zaxo points out).

If you really would like to completely offload the work to a client's machine, then I would suggest installing your .exe as a listening service on the end users machine. This would not be a full fledged web server, but rather a simple program that only listens for specific data on a specific port (like the idea that Beatnik was suggesting). You could then redirect your HTML FORM tag to post to the localhost on your listening port.

Of course this whole scheme will require you to get the end user to install the listening service.

If you do not desire to have the end user install programs locally (issues with different operating systems, and end user know how), then you will probably have to use a language/facility that is supported in the browser. Such as stand alone applets, ActiveX applications, and perhaps even simple Javascript and or VBScript.


Chris
'You can't get there from here.'

In reply to Re: Re: exe on local machine by ckohl1
in thread exe on local machine by Kevin Ar18

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.