I have shortcut files where my real files used to be on Windows 10, and I want to convert the shortcuts back into the original files.
Is a shortcut convertible back to the file it points at?
I have shortcut files where my real files used to be on Windows 10, and I want to convert the shortcuts back into the original files.
Is a shortcut convertible back to the file it points at?
The framing needs one correction that changes everything, because a shortcut cannot be converted into a file, it never contained one and understanding that points at the real recovery:
What a shortcut actually is: a shortcut is a tiny pointer file that references another file's location, containing no data of the original itself, so there is nothing inside a shortcut to convert back into the file. If the shortcuts appeared where your real files were, the real files were not turned into shortcuts, they were hidden and shortcuts were placed alongside, which is the shortcut virus pattern, meaning your real files are elsewhere on the drive, hidden, waiting to be revealed rather than converted.
The real recovery, revealing the hidden originals: since the files still exist hidden, the recovery is the attrib command that unhides them, attrib -h -s -r /s /d *.* from an admin command prompt on the affected drive, which clears the hidden and system attributes and makes your real files reappear alongside the shortcuts, covered fully in the shortcut virus thread linked alongside. Then you delete the useless shortcuts and keep your revealed files, which is the actual conversion you wanted, not shortcut into file but hidden file back into view.
The case where a shortcut points at a real surviving file: if a shortcut genuinely points at a file that still exists somewhere, right clicking the shortcut, Properties, shows the Target, the path to the real file, which you then navigate to and use directly, the shortcut having served only as a pointer. This is the benign case where a shortcut is just a shortcut, distinct from the virus case where the shortcuts are malware decoys and the reveal is the recovery.
The malware cleanup that must follow the virus case: if this was the shortcut virus, revealing the files is half the job, running a malware scan to remove what hid them is the other half, since the files reappear but the malware remains ready to rehide them and spread to other drives, the incomplete fix that makes the problem seem to return.
The a shortcut contains no file correction reframed my whole problem, I had been trying to convert them when I needed to reveal hidden originals. attrib did exactly that, my real files reappeared and I deleted the decoy shortcuts. Ran a scan after per the cleanup note. Understanding what a shortcut is was the whole answer.
Could you write out the attrib command exactly? I want to be sure I do not delete something by mistake.
Open Command Prompt as administrator and use this, replacing E: with the drive letter of the affected drive:
attrib -h -r -s /s /d E:\*.*
The switches remove the Hidden, Read-only and System attributes from all files and folders on the drive, including subfolders. Do it before you delete anything. Once the real files are visible, check that they open, copy them to another drive, and only then delete the shortcut decoys.
Also run a full scan with Windows Security or an offline scan, because the pattern usually comes from a virus on a USB drive. Do not plug the drive into other PCs until it is clean.
Ran the command with my D drive letter and all folders came back. I copied them out first as you said. Thanks.