MsBuild Error MSB3073: The command exited with code 128

Answered MsBuild Error MSB3073: The command exited with code 128

  • Thursday, February 02, 2012 11:05 AM
     
      Has Code

    I have msbuild file (.target) and I execute it in remote machine using psexec.

    I get the following error:

    error MSB3073: The command "attrib -R "C:\scripts\doc\*.*" /S /D" exited with code 128.

    I don't understand why attrib command fails, what is means code 128 error for attrib ?

    Any suggestions about it ?

    The target is:

          <Target Name="CopyPdf">
        
          ...
            <Exec Command="attrib -R &quot;$(RutaDestinoDocumentosParaAgentes)\*.*&quot; /S /D" IgnoreExitCode="false" WorkingDirectory="C:\WINDOWS\system32"/>
          </Target>
    
    

     

    Thx, regards
    www.kiquenet.com/profesional

All Replies

  • Friday, February 03, 2012 7:50 AM
    Moderator
     
     Answered

    Hi alhambraeidos,

    MSB3073 is just a generic error that means an Exec task returned a non-zero error code.

    If you try to build it in your target computer, whether this issue remain?

    And please make sure you have the right to C:\scripts\doc\*.* , and the files you want to access is not read only.

     

    Best regards,

    Lucy


    Lucy Liu [MSFT]
    MSDN Community Support | Feedback to us
  • Friday, February 03, 2012 10:24 AM
     
     

    Only it happens in production environment, in my target computer all is OK.

    I use Exec Command= for execute ATTRIB command , that changes readonly attribute in files.

     

    any logs are generated in machine about it ?


    Regards


    Should "Hi", "Thanks" and taglines and salutations be removed from posts? http://meta.stackoverflow.com/questions/2950/should-hi-thanks-and-taglines-and-salutations-be-removed-from-posts
  • Thursday, February 09, 2012 2:56 AM
    Moderator
     
     Answered

    Hi Kiquenet,

    As you described, in your target computer all is ok, so i think this issue is not caused by the MSBuild. There maybe some wrong with your remote settings or others.

    If you have no idea which forum the further question should be, you can Where is the Forum For…? forum.

    Please mark the useful reply as answer.

    Thank you for your understanding!

    Best regards,

    Lucy


    Lucy Liu [MSFT]
    MSDN Community Support | Feedback to us