MsBuild Error MSB3073: The command exited with code 128
-
Thursday, February 02, 2012 11:05 AM
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 "$(RutaDestinoDocumentosParaAgentes)\*.*" /S /D" IgnoreExitCode="false" WorkingDirectory="C:\WINDOWS\system32"/> </Target>
Thx, regards
www.kiquenet.com/profesional
All Replies
-
Friday, February 03, 2012 7:50 AMModerator
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
- Marked As Answer by lucy-liuModerator Monday, February 13, 2012 2:02 AM
-
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 AMModerator
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
- Proposed As Answer by Kiquenet Development Thursday, February 09, 2012 7:10 AM
- Marked As Answer by lucy-liuModerator Monday, February 13, 2012 2:02 AM

