first, see Roger's comments. second, to help debug, change your code so it's in the form:
my $file = "\\172.22.1.73\D:\FromC\FitClass\fooo.LOG"; warn $file; open(REMOTE,'<', $file) or die ("cannot open the remote file '$file': +$!");
Now, take the string from the warn line (let's assume it printed "foo at script.pl line 1234") and try to run start foo from a dos prompt. Does this work? If not, is it because the UNC path is malformed? Note that it could work but your script still doesn't due to permissions issues -- for example if this is being used from a CGI script make sure that the web server (the IIS user account) has permission to read that file.

In reply to Re: Cannot acces a remote file by davidrw
in thread Cannot acces a remote file by chennaiite

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.