https://www.electronicgurudev.in/technology/enable-show-hidden-files-option-2/
Due to some virus or trojan horses you may be facing Problem Like When you Click Show Hidden Files it Automatically Resets to Do not Show Hidden Files ?
Follow these Steps To Show your Hidden Files:
1. Go to Start –> Run, then type regedit
2. Navigate to the registry folder HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows
CurrentVersionExplorerAdvancedFolderHiddenSHOWALL
3. Find a key called CheckedValue.
4. Double Click CheckedValue key and modify it to 1.“DefaultValue” to 2 This is to show all the hidden files.
Now you should be able to view all the hidden files, and also to alter its status from folder options.