Error de MsBuild MSB3073: el comando salió con el código 128

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

Obtuve el siguiente 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>

preguntado el 02 de febrero de 12 a las 10:02

1 Respuestas

I assume you checked the command on the target computer to check it works.

When using psexec, you can specify the user it will run on the target machine. Are you sure the user has rights to files ? To check this, you can use Process Monitor to check access on file system. You'll be able to see if some files cannot be accessed.

Respondido 02 Feb 12, 15:02

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.