Click here to Skip to main content
15,885,366 members
Articles / Programming Languages / C++
Alternative
Tip/Trick

Reset File Attributes - Set or Reset Read Only file attribute.

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
20 Oct 2011CPOL 7K  
How about this one line command for MS-DOS?for /f %a IN ('dir /b *.txt') do attrib %a -RSee: attrib command[^]andhow to write a dos batch file to loop through files[^]
How about this one line command for MS-DOS?

C#
for /f %a IN ('dir /b *.txt') do attrib %a -R


See:

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Program Manager
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --