RobVious
RobVious

Reputation: 12915

How to set Pre + Post Build Event to remove Read-Only attribute from ALL files/folders?

I'm running into Unauthorized issues with our new TFS build templates on the build machine when TFS attempts to build our solution - multi-proc is causing issues and after days of researching/troubleshooting, I'd like to try and set a pre and post build event to mark all files/folders as NOT read-only. I have this:

attrib -r "$(ProjectDir)*.*"

But I'm not sure that this will work as expected (all folders/files/subfolders etc).

Upvotes: 3

Views: 1201

Answers (1)

user3461858
user3461858

Reputation: 9

you forgot call, this should work:

call attrib -r "$(ProjectDir)*.*" /s

Upvotes: 0

Related Questions