delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/07/22/15:15:33

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Thu, 22 Jul 2004 22:13:32 +0200
From: "Eli Zaretskii" <eliz AT gnu DOT org>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp AT delorie DOT com
Message-Id: <9003-Thu22Jul2004221332+0300-eliz@gnu.org>
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9
In-reply-to: <cdofgc$ckgh$1@simian.nlr.nl> (uiterl@xspamxnlr.nl)
Subject: Re: make 3.79.1 problem with copy command (Windows XP)
References: <cdofgc$ckgh$1 AT simian DOT nlr DOT nl>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Rob Uiterlinden" <uiterl AT xspamxnlr DOT nl>
> Newsgroups: comp.os.msdos.djgpp
> Date: Thu, 22 Jul 2004 15:28:43 +0200
> 
> make test1 gives:
>   copy longfilename.txt a.txt
>   File not found - LONGFILENAME.TXT
>           0 file(s) copied

Try

test1:
<tab> cmd.exe /c copy longfilename.txt a.txt

The problem here is that XP invokes COMMAND.COM as the shell for DOS
programs, and it looks like the version of COMMAND.COM they use
doesn't support long file names.  CMD does.

(You should be much better off using cp.exe from GNU Fileutils
instead of COPY and othet shell built-ins.)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019