The symptom of this problem is every time you select the Show hidden files and folders options under Folder Options, the screen just flashes and when you click OK and the hidden files and folders are still hidden. If you have this problem, you may have some type of virus or spyware on your computer. Most times, this issue can be solved by running a scan with MalwareBytes or Spybot. Other times, you can fix this problem by editing the registry.
1. Click Start > Run and type REGEDIT
2. Click the plus sign next to HKEY_CURRENT_USER
On the right side, double click the hidden value and give it a value of 1.
You should now be able to enable hidden files and folders.