I've asked this question yesterday;
"I need help here, please. I have a page that has links to a batch file in the user's computer, if the user doesn't have the batch file it will generate a page not found page, if it is found it will display the results by the batch file. My question is, there is a way to check for the presence of the batch file in the user computer and redirect them to a page explaining that don't have it. Or by detecting from the browser that the batch file doesn't exist when page can't not be displayed comes up, therefore they will be redirect somewhere. Can someone point me to the right direction on how to do such a program or even if it is possible?"
But I have to rephrase my question again, the reason for this question is to see is some of my viewers would have downloaded an application to their hard drive if not I would have to instruct them to try to do so. I heard that it is possible using active-x control but I try to stay away from it. I also don't want to invade people’s computer trying to check into their harddrive. My new question is, let say they click on this link that is linked to a batch file in their computer c: drive. If they have this application installed it will launch the program, otherwise it will display a can't find page screen. I am wondering if I could capture that “can't find page” error somehow and redirect them to another location with useful information using perl. Once again;
Thank you very much!!

In reply to Rephrased File Checking Question by Anonymous Monk

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.