... News | Home | Impressum | Contact | Thank you | Listed at | Link to me

HOME » Faq » FAQ - Windows-Command-Prompt

«««« FAQ 08 OF 12 »»»»

How to remove read-only or hidden file attribute vial cmd?

The solution to remove read-only or hidden file attribute via cmd in all windows OS!


If you want to change the file attribute via windows command prompt please use ATTRIB command!

Description of the attributes:
H=Hidden,  S=System, R = Read-only, A=Archive
use "+" to set a file atribute and "-" to remove file attributes!

# Show the file attribute in folder C:\TEST!
C:\Test>ATTRIB *.*
A   HR     C:\Test\5.txt
A   HR     C:\Test\Hidden-File1.txt
A   HR     C:\Test\System File1.txt


# Change the file attribute!
"+" Sets an attribute.
"-" Clears an attribute.

In the example here, delete read-only attribute for all files in the folder "test".
for single File ARTTIB 5.txt -R remove read only
or ARTTIB 5.txt -H remove hidden file attribute

C:\Test>ATTRIB *.* -R /S

# List / Show file attribute again!
C:\Test>ATTRIB *.*
A   H      C:\Test\5.txt
A   H      C:\Test\Hidden-File1.txt
A   H      C:\Test\System File1.txt


The help file for ATTRIB command!

Microsoft Windows X [Version 5.1.2600]
(C) Copyright 1985-2014 Microsoft Corp.

C:\Documents and Settings\Administrator\Desktop>ATTRIB /?
Displays or changes file attributes.

ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [drive:][path][filename]
 [/S [/D]]

+   Sets an attribute.
-   Clears an attribute.
R   Read-only file attribute.
A   Archive file attribute.
S   System file attribute.
H   Hidden file attribute.
Specifies a file or files for attrib to process.
/S  Processes matching files in the current folder
and all subfolders.
/D  Processes folders as well.

C:\Documents and Settings\Administrator\Desktop>

FAQ 8: Updated on: February 20th 2014 13:04
FAQ: Windows-Command-Prompt
3. Delete and Overwrite permanently?
4. How to scans all protected system files?
5. How to displays all network connections and listening ports?
6. How to create at once, several subfolders levels?
7. Close correctly, the command prompt e.g. cmd.exe!
8. How to remove read-only or hidden file attribute vial cmd? ***
9. Taskkill with the Cmd.exe, how to use correct and useful with examples!
10. Make Windows command prompt wider, how to?
11. Long file and folder paths in the CMD prompt (insert,paste)!
12. Start programs with different priority classes, how to?


  Windows-Command-Prompt FAQ-INDEX


  My question is not there in the FAQ
Direct to FAQ:
# Q-DIR # DesktopOK # Win-7 # Windows-7 # Windows-8 # SoftwareOK # NewFileTime # Windows-9 # ExperienceIndexOK # Run-Command # NonCompressibleFiles # BlankAndSecure # OnlyStopWatch # MultiClipBoardSlots # PointerStick # Extern-Downloads # System-General # FileSystem # Microsoft-Office # GetWindowText # ItIsMyFile # TheAeroClock # AlwaysMouseWheel # Windows-10 # Beginners # OneLoupe # Windows-Command-Prompt # DontSleep # ProcessKO # This-and-That-or-Other # IsMyHdOK # QuickTextPaste # WinScan2PDF # MeinPlatz # Internet-WWW # FontViewOK # TraceRouteOK # Android # StressMyPC # Samsung-Galaxy # Glossar # WinBin2Iso
Asked questions on this answer:
  1. How to change hidden to readonly files?
  2. Unhide hidden files server 2012 cmd?
  3. Cmd del all attributes?
  4. Remove read only attribute windows 8?
  5. Remove read-only attribute file?
  6. How to remove read only file in c drive?
  7. Remove the hidden, read only, and system attributes from command prompt windows 7?
  8. How to remove readonly files from c drive?
  9. How to remove read-only attribute using cmd?
  10. How to remove file hidden and system properties using command prompt?
  11. Folder read only c:\windows di win 8?
  12. Change read only attibute on program data file windows 7 cmd?
  13. Cmd command to remove hidden attribute?
Keywords: windows, command, prompt, remove, read, only, hidden, file, attribute, Questions, Answers, Software


Quick-Link's :quadruple treeterminating goes faster;)hold a chargeoverclocked systems
Home | Thanks | Contact | Link me | FAQ | English-AV | Impressum | Translate | PayPal | PAD-s
 © 2017 by Nenad Hrg softwareok.desoftwareok.comsoftwareok.eu
Stress your LCD // windows7 FAQ // Dead pixel policy // Visual impairments? // Stretch the Screen // Remembered Fonts // Can't restore icon positions (x64)? //