in reply to C:\Documents is not recognised as an internal or external command, program or batchfile.

You may want to change your PATH variable
from PATH=.... C:/Documents and Settings/BioGeek/Perl; ... to PATH=.... C:/DOCUME~1/BioGeek/Perl; ...
This "dumbed-down" path should not effect existing code, but will allow space-unaware code to work.

     "There are only two truly infinite things. The universe and stupidity, and I'm not too sure about the universe"- Albert Einstein

  • Comment on Re: C:\Documents is not recognised as an internal or external command, program or batchfile.
  • Download Code

Replies are listed 'Best First'.
Re^2: C:\Documents is not recognised as an internal or external command, program or batchfile.
by jimbojones (Friar) on Apr 14, 2005 at 21:03 UTC
    Hi

    I tried this for the $^X example above, and it doesn't help. I wish it did.
    C:\Documents and Settings\jim>set PATH=C:\progra~1\perl\bin;%PATH% C:\Documents and Settings\jim>which perl.exe C:\progra~1\perl\bin\perl.exe C:\Program Files\Perl\bin\\perl.exe C:\Documents and Settings\jim>perl -e "print $^X" C:\Program Files\Perl\bin\perl.exe C:\Documents and Settings\jim>
    I also tried updating Config.pm to have C:/progra~1/perl. This also didn't help.

    - j

      Try
      use Win32; use Config(); use File::Spec; $^X = Win32::GetShortPathName($^X); do File::Spec->catfile( $Config::Config{bin}, 'cpan.bat' );
      Might also want to give CPANPLUS a try.

      MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
      I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
      ** The third rule of perl club is a statement of fact: pod is sexy.