in reply to Re^3: NMAKE : fatal error U1077
in thread NMAKE : fatal error U1077

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."

Replies are listed 'Best First'.
Re^5: NMAKE : fatal error U1077
by syphilis (Archbishop) on Sep 18, 2008 at 10:23 UTC
    I think we have a case of the OP showing us what he thinks we need to see, and missing.

    Makes sense.
    yellowman, I think the best thing for you to do would be to put the entire 'nmake install' output on your public scratchpad so that we can see *all* of it.

    Cheers,
    Rob