• Home
  • SEM
    • PPC
    • SEO
    • How To
  • Bangladesh
  • School
    • HTTP
    • REP
    • Bots n’ htaccess
    • Source Code
    • Excel 2010
    • HTML XHTML Entities
    • Gmail Operators
    • HTML & ASCII
  • About
    • Privy
    • About This Blog
  • Contact
  • বাংলা

Saidul Hassan

Digital Marketing Evangelist

Home / School / DOS CMD – File/Folder Attribute Change

DOS CMD – File/Folder Attribute Change

06 Oct, 2013 By Saidul Hassan · Filed Under: School

Run –> cmd
use the cd command (Change Directory)
help for the cd command cd /?
in the desired folder, run the command: attrib -r -a -s -h *.*
Attrib command is used to add or remove attributes to a file. The attributes include read-only, archive, system, hidden etc. To add an attribute, use a plus (+) sign and to remove an attribute minus (-) sign is used. In the above command that certain attributes are being removed.
Explanation:
-r will remove the read-only attribute of the specified file.
-a will remove the archive attribute of the specified file.
-s will remove the system attribute of the specified file.
-h will remove the hidden attribute of the specified file.
*.* means any file with any extension will be processed. So all the files in the directory where this command is run will be unhidden and will become read-write.

To unhide all folders + subfolders and files, run the following command:
attrib *.* -h -s /s /d
On some systems /s and /h switches don’t work and -s and -h switches can be used instead. In such case use attrib -s -h *.*
To simply display a list of hidden files and folders and not change their attributes, run the following command:
dir/ah

Reference:
01.http://www.itechtics.com/unhide-files-and-folders-by-single-dos-command/
02.A-Z Index of the Windows CMD command line http://ss64.com/nt/


Display or change file attributes. Find Filenames.

Syntax
ATTRIB [ + attribute | – attribute ] [pathname] [/S [/D]]

Key
+ : Turn an attribute ON
– : Clear an attribute OFF

pathname : Drive and/or filename e.g. C:\*.txt
/S : Search the pathname including all subfolders.
/D : Process folders as well

attributes:

R Read-only (1)
H Hidden (2)
A Archive (32)
S System (4)

extended attributes:
E Encrypted
C Compressed (128:read-only)
I Not content-indexed
L Symbolic link/Junction (64:read-only)
N Normal (0: cannot be used for file selection)
O Offline
P Sparse file
T Temporary


Reference:
03. Attrib – Edit file attributes http://ss64.com/nt/attrib.html

The following two tabs change content below.
  • Bio
  • Latest Posts
My Twitter profileMy Facebook profileMy Google+ profileMy LinkedIn profileMy Instagram profileMy Pinterest profile

Saidul Hassan

Managing Partner at Up Arrow Consulting
COO at Up Arrow Consulting, MCC manager, & Technical SEO consultant. Certified Google Partners and Microsoft Bing Ads Accredited Professional, Python enthusiast, wannabe SysAdmin. Graduated from School of Management & Business Administration (SOMBA), Khulna University.
My Twitter profileMy Facebook profileMy Google+ profileMy LinkedIn profileMy Instagram profileMy Pinterest profile

Latest posts by Saidul Hassan (see all)

  • How to use PrismJS syntax highlighter on WordPress without plugin - 30 Mar, 2020
  • Download an Entire Website for Offline Viewing - 26 Nov, 2019
  • HMA Pro VPN Setup for Multiple Locations without User/Password Every time in Linux CLI - 14 May, 2018

Share:

  • Twitter
  • Facebook
  • LinkedIn
  • Pinterest
  • Pocket
  • Email
  • Print

First published on 06 Oct, 2013 · Last updated 06 Oct, 2013 · Tagged With: attrib, CMD, DOS, file, folder, hidden, system

How to use PrismJS syntax highlighter on WordPress without plugin

30 Mar, 2020 By Saidul Hassan

Download an Entire Website for Offline Viewing

26 Nov, 2019 By Saidul Hassan

HMA Pro VPN Setup for Multiple Locations without User/Password Every time in Linux CLI

14 May, 2018 By Saidul Hassan

How to Search and Delete Files Containing Specific String in Name

27 Nov, 2017 By Saidul Hassan

How to Bulk Rename Video Files based on Resolution, Size etc.

27 Nov, 2017 By Saidul Hassan

Archives

  • March 2020
  • November 2019
  • May 2018
  • November 2017
  • July 2017
  • March 2017
  • February 2017
  • June 2016
  • November 2015
  • July 2015
  • June 2015
  • May 2015
  • January 2015
  • December 2014
  • September 2014
  • February 2014
  • January 2014
  • October 2013
  • September 2013
  • August 2013
  • February 2013
  • January 2013
  • November 2012
  • October 2012
  • September 2012
  • July 2012
  • August 2011
  • June 2011
  • May 2011
  • ♥ Bangladesh ♥
    Log in · Privacy Policy · Contact
    Copyright © 2011 Saidul Hassan

  • DMCA

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.