PDA

View Full Version : Change File Attribute


jhuang
02-24-2004, 02:33 PM
Hi,

I need to change file attribute from Read-Only to Writable. Could someone tell me how to do this in Visual Build?

Thanks,
Jing

pjaquiery
02-24-2004, 02:48 PM
Use a "run Program" step with something like this as the command line:

%DOSCMD% attrib -R "%PROCFILES_FULLPATH%"

kevina
02-24-2004, 03:38 PM
Or use this with a Run Program action: %ATTRIB(%PROCFILES_FULLPATH%, -R)%, using the global ATTRIB macro (the PROCFILES_FULLPATH macro usage implies this action is called by a Process Files action, which would specify the file(s) to update).

Kevin