2

I used the attrib command to hide a file as system, something like this-

attrib +s +h example.txt

Is they any way to recover this file without knowing the file name and/or the directory?

I mean is there any way to unhide these files like the normal hidden files (which we can do from the View tab in the File Explorer). Also if we somehow forget the file name and/or directory, is it lost forever, or is there any way to recover it.

1 Answers1

5

From a command prompt, run dir /a:sh which lists our all files marked as system and hidden. Once you see the file in the list, set the attrib flags back.

An alternative (thanks LPChip) is to enable Show hidden files, folders and drives from the below dialog, which you can get to from Windows Explorer > View > Options > Change folder and search options.

enter image description here