attrib
CautionChange file attributes
attrib -h -s <file>
Sets/clears hidden, system and read-only bits. Classic fix for files hidden by USB malware.
Examples
attrib -h -s /s /d D:\*Unhide everything on a drive
Syntax
attrib [+/-r] [+/-h] [+/-s] <file> [/s /d]
Before you run it
Clear the system bit selectively.
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store