I can't make sense of this either. Using two empty directories as a test ground:

C:\test\junk>dir /w a b Volume in drive C has no label. Volume Serial Number is BCCA-B4CC Directory of C:\test\junk\a [.] [..] 0 File(s) 0 bytes Directory of C:\test\junk\b [.] [..] 0 File(s) 0 bytes 2 Dir(s) 15,859,965,952 bytes free

and a simple makefile:

C:\test\junk>type makefile all: xcopy /f /r /i /e /d a\*.* b\*.*

You can see that xcopy doesn't consider it an error to copy no files with the specified set of arguments, and nmake reports no error:

C:\test\junk>nmake all Microsoft (R) Program Maintenance Utility Version 7.00.9466 Copyright (C) Microsoft Corporation. All rights reserved. xcopy /f /r /i /e /d a\*.* b\*.* 0 File(s) copied

You can reproduce the OP error message by (1 of several ways) adding an unknown switch to the xcopy command:

C:\test\junk>nmake all Microsoft (R) Program Maintenance Utility Version 7.00.9466 Copyright (C) Microsoft Corporation. All rights reserved. xcopy /f /r /i /e /d /b a\*.* b\*.* Invalid switch - /b NMAKE : fatal error U1077: 'xcopy' : return code '0x4' Stop.

But if that were the problem here, a) we'd see the bad command; b) see the error message identifying it.

But neither of the commands the OP has posted have syntax errors, and regardless of whether there is some other error that is causing there to be no files, the xcopy commands posted are correctly formatted and do not consider the absence of files to copy an error.

I think we have a case of the OP showing us what he thinks we need to see, and missing.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."

In reply to Re^4: NMAKE : fatal error U1077 by BrowserUk
in thread NMAKE : fatal error U1077 by yellowman

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.