Originally posted by sand king:
ATTRIBDisplay and change file attributes.
Ect.
ATTRIB +H will make a file hidden.
ATTRIB -H will make that file visible again.
ATTRIB +H C:\(Foldername)
Correct me if im wrong please, in correction others, we learn
Yup.
Here are the other switches and what they do.
attrib +a will make a file archive, that means you can't delete it.
attrib -a will do the opposite.
attrib +r will set the file as read-only, and this means no editing or deleting the file.
attrib -r will do the opposite.
attrib +s will set the file as a system file, and make Windows protect it, making it harder to be deleted. It will reappear once again if it's deleted.
attrib +s will do the opposite, but whether it helps in deleting files, I'm unsure. Never try.
attrib /s will show all the files and folders in that particular folder
attrib /d will show folders...
To produce a log file of these results, do this:
attrib /s > attrib.txt (name attrib.txt to any name that you like, but it must end with .txt or .log or nothing will show)