Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / C++

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

5.00/5 (2 votes)
20 Oct 2011CPOL 7.2K  
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)