If your folders have turned into files with a .exe or .lnk extension, Run a scan with Malwarebytes or your preferred antivirus.
Type the following command: chkdsk D: /f (Replace 'D' with your actual drive letter).
Some legacy "Folder Viruses" hide your real folders and replace them with .exe files that look like folders to trick you into clicking them. Method 1: The Manual Rename (The "Quick Fix") filedot to folder fixed
Filing Fixed: How to Convert a File to a Folder (and Why It Happens)
If the file is named something like WorkData. , remove the trailing dot. If your folders have turned into files with a
Identify the drive letter where the "file" is located (e.g., D: ).
Use the command attrib -h -r -s /s /d G:\*.* (Replace G: with your drive) in CMD to unhide any original folders the virus might have hidden while it showed you the "fake" file folders. Summary Table: Quick Fixes Potential Fix File has a dot at the end Rename and remove the dot File is 0KB and unopenable Run chkdsk /f File ends in .exe but looks like a folder Run Antivirus immediately File was a downloaded project Add .zip and extract Conclusion Method 1: The Manual Rename (The "Quick Fix")
In Windows, go to File Explorer > View > Check "File name extensions."