Hi

This error occurs because CPAN.pm is kicking off a system command of the form:
C:\Documents and Settings\BioGeek\Perl\bin\perl.exe <some arguments>
when DOS wants:
"C:\Documents and Settings\BioGeek\Perl\bin\perl.exe" <some arguments>
If you can provide some more information as to where the error is occurring, by providing more logging info from before the error occurs, maybe we can find which piece of code in CPAN.pm is throwing the error. One possible place is in (Perl 5.8.4, your's may vary)
sub perl { my($self) = @_; my($perl) = File::Spec->file_name_is_absolute($^X) ? $^X : ""; #### JJ Comment - on my machine $^X is "C:\program files\perl\bin\ +perl.exe #### could change this to #### my($perl) = File::Spec->file_name_is_absolute($^X) ? "\"$^X\" +" : ""; my $pwd = CPAN::anycwd(); my $candidate = File::Spec->catfile($pwd,$^X); $perl ||= $candidate if MM->maybe_command($candidate);
Hope this helps, J


In reply to Re: C:\Documents is not recognised as an internal or external command, program or batchfile. by jimbojones
in thread C:\Documents is not recognised as an internal or external command, program or batchfile. by BioGeek

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.