Files & Folders in USB turn into Shortcuts in Windows 10


  1. or save the following in a .bat file to make it easier to use

    title Fix files and folders turned to Shortcuts in USB Drive
    @echo off
    echo “Enter Drive letter”
    set /p driveletter=
    attrib -s -h -r /s /d %driveletter%:*.*

  2. quite the same, yea, i agree.
    but just to make it an easy reminder if you forget that command, just know the drive letter and you’re done
    besides it can be helpful if somebody had that problem, just send the file and it’ll do the work for them instead of explaining what the drive letter is, and bla bla bla,

  3. Is there any permanent solution? I scanned those shortcuts with popular antiviruses like bit defender, Kaspersky, e set smart security, avg internet security & windows defender also. But the scan results are showing the files are clean.

  4. ^^ Correct. These shortcuts are not viruses so no security suite will be find them malicious. In my case, System File Checker did the job and my USB works fine now. Reinstallation of Windows will be a definite fix AFAIK :)

  5. This solution is written for a computer technician….i couldn’t do the 1st step…which is run command prompt…

  6. Hi my challenge is that the folders on my Nokia E7 turned to short cuts, however my computer does not assign a drive letter to the phone it recognises it as a portable device with no assigned drive letter.

  7. I connected my mobile via usb port to my pc and directly tried to download some songs. My cell phone memory and sd card both have got infected by this virus. I have recovered my files, formatted device many times, typed this command in C.prompt but all in vain. Whenever I copy a photo or song in it, it again turns into a shortcut. In short, I just cannot remove the virus completely. Worried :( Please help!
    P.S. I just connected my another usb to my pc and Holy Crap! All the files in it also have got infected. @kapilarya:disqus

  8. i did the 1st step bt when i came back to the USB drive, i won’t find that command has been executed.

  9. Did all the above steps and everything worked, except for when I copied my files back to USB drive, it switches to shortcuts againg. Any advice?

  10. Yes; I tried this way and it worked in some cases…..sometimes it doesn’t work…any other helps?!

  11. USB Shortcut Recover is a
    free tool to recover data from corrupt USB sticks or hard disks infected
    by a Shortcut virus. The program will restore the files and folders to
    their original locations prior to being infected with viruses. USB
    Shortcut Recover works with USB sticks, pendrives, SD Cards, and Hard

  12. my usb works perfectly in another computer …….
    when i come home the same problem with .Trashes shows i cannot delet files or format my USB

  13. ok, a little update here

    title Fix files and folders turned to Shortcuts in USB Drive
    @echo off
    echo Enter Drive letter to scan
    set /p driveletter=

    echo Don’t forget to remove startup items and check they are deleted from disk using Everything
    REM Check scheduled tasks as well

    echo Killing wscipt.exe Process
    taskkill /f /im wscript.exe

    echo Showing Hidden Files
    attrib -s -h -r /s /d %driveletter%:*.*

    echo Deleting shortcuts and infected files from disk
    del %driveletter%:*.lnk
    del %driveletter%:*..vbs
    del %driveletter%:*.vbs

    echo Deleting Infected Files from the computer
    del %temp%*.vbs
    del %temp%*..vbs
    del %appdata%*.vbs
    del %appdata%*..vbs

    REM Delete the startup item with extension .vbs (you do it manually for now)

    i saw that virus with a lot of friends. save the above to a .bat file and it should remove it from the computer as well, the .bat file must be run as an administrator, and after it’s done. you should delete the startup entery created by the file. i couldn’t figure out how to do it from the batch file yet, so i do it manually for now till i find a way. if you got any, please let me know

  14. ^^ Please try this command in administrative Windows PowerShell after trying the command mentioned in article:

    Repair-WindowsImage -Online -RestoreHealth

  15. I did everything above and still no permanent fix. But when I updated windows, the Windows Malicious Software Removal Tool found that virus and removed it by itself permanently. This is what you should do too.

  16. Hi
    Kapil arya

    Just tell me does it works for external hard disk ….
    If yes does it takes long time ?depending upon data…

  17. super! thanks a lot for posting this! I have been through other posts claiming that it fixed the problem and I have to install so many programs which is really a hassle. I’m glad to stumble upon this one.

  18. hey pls send some information about…

    my pendrive storage shows full…
    but it didn’t shows any files or folders or shortcuts…

    how to make original folders…… pls give me suggessions….

    ur’s saikumar

  19. ^^ Make sure the files and folders are not set to Hidden. You can also try plugging USB to different computer and see if you see any differences.

  20. In my case I already have the original folder and the shortcut files of the original folders. I wanted to delete those shortcuts, what should I do?

  21. Hi, so I was able to get rid of the virus, but now the folders are not even showing up as shortcuts. What’s interesting is the other files such as pictures and songs are showing up (they were not in folders). I have tried changing the folder options -> show hidden folders, but I don’t think that’s the problem. I have scoured the internet and not found any solution. Thank you.

  22. hey please write some easy language for this, because I can not understand what is written in the first step :/

  23. I have found a very easy and fast way out. In Window 7 right click the USB or Folder, Click property, then Hardware, then click Volume. Below the box CLICK POPULATE. Bingo

  24. Hi, I entered the attrib -h -r -s /s /d L:*.* as shown by you, but cmd displayed ‘attrib’ is not recognized as an internal or external command,operable program or batch file, so I modified folder options by unchecking protected files option..
    but still I got the same message by doing so, Please help me I cannot use my pendrive outside also even file copying in my system is much slower after this rubbish shortcut virus affected my system,help me…

  25. Hey I included the path of system32 in environmental variables, it worked… thanks, finally one more question after formatting, the virus will not again affect me pendrive?

  26. hi, i hv shortcut files on images,videos ,folder like it showen above in win7 ,c drive …when i try to open the files it says delete the shortcut…also i wud like to knw what Advanced Attributes should i keep for the folder?…n what Security name user or admin

  27. Kapil Arya- What about the virus inside my lappy now!!!
    Whichever pendrive i use is shown as if infected with the same virus!!
    Moreoover my windows crashed… first the Bluetooth and then the wifi went hey-wey, later the MS Office went crazy!

  28. i tried that trick but still there only shortcuts it doesn’t execute any files.please tell me another way

  29. Anyone help…I don’t really know how to get this thing solve but now my big problem is my stuff in the USB. All my movies are gone.. I can’t find it anywhere. like the article said mine was a recyclebin folder in my USB. A hardisk actually. What should i do? Please help me. I desperately need my things back… TAT Anyone can help please email me-

  30. Hi Portia, you should copy the original folders to your desktop and format your flash drive. After formatting, copy your files back…

  31. I have done this with my C drive what to do know ? :D please tell me all the system files are now appearing everything messed up

  32. The problem with Folders being shortcuts is “User Error”. When you drag and drop it’s a crap shoot on whether you get a shortcut or the file. You should Always “Right Click and drag”. This gives you the option of Copy, Move or Create Shortcut. The drag and drop problem first started back in Windows 95. I made the mistake 1 time, that was the last time.

  33. Right click on the files and take Ownership. If the files are truly files then you will be able to edit, copy and move them. But if they are truly shortcuts you should be able to delete them.

  34. My Nokia X works perfect in Windows. Do you have Mapped Drives? If so your Nokia could be hidden by the mapped drive letter. Check Computer Management to see what drives are listed. It’s possible the Nokia is there but doesn’t have a drive letter assigned.

  35. Your problem may be you actually created shortcuts on your USB not actually copying the files and folders. Right Click, drag and drop is the best way to go.

  36. No, it is actually a known glitch.

    I was able to save the valuable info and just reformat the damn thing.

  37. Hi Meena,

    I tried the .bat file you wrote, however I get an error message when running it as an Admin in Windows 7:
    Also, the original files show up under the shortcuts, but then disappear again. Any help is much appreciated.

  38. install usbfix. download it on the internet for free
    done installed
    insert ur infected USB
    run USBfix – click Clean

  39. nstall usbfix. download it on the internet for free
    done installed
    insert ur infected USB
    run USBfix – click Clean

  40. Download USBfix on the internet for free
    Installed it
    insert ur infected USB
    run USBfix – click Clean

  41. Download USBfix on the internet for free
    Installed it
    insert ur infected USB
    run USBfix and then click Clean

    i tried it and it’s effective

  42. hello please help for my problem
    i buyed new processor and motherboard 15days before everthing was working well
    and now whenever i connect any usb inside it all files becomes as shortcuts
    so i formated HDD and deleted all partiton and creat new but again i checked connecting usb same shortcut appeares, i formated usb even i scanned antivirus nothing is found.
    please help me Asap.

  43. please help me guys i have typed the same as u suggested but an error is showing “attrib” is not recognized as an internal or external command.please help me u can message me on

  44. yes i typed as it is shown in comand promt
    on begining it got seprated but dan in few second again it started showing shortcuts
    many tyms i tried but no use

  45. ^^ I suggest you to format your USB and plug it to another system, put some content in it and then check if the issue persists. If the issue resolves, consider to Refresh your Windows 8 installation.

  46. Hi, i am having the same problem but when when i put this attrib -h -r -s /s h:*.* on Command Prompt it says page not found can you please help me out ASAP. thank you.

  47. hi Kapil…… em facing the same problem…..but em lil bit confused about the solution given…. plz help me out….. ??????

  48. This didn’t work for me. My files were still hidden.
    So I tried this:- Uncheck the hidden box for each file (in the file properties) and make sure you apply the changes for folders and subfolders. Then just delete the shortcuts.
    Although this wouldn’t be preferred by someone who has many files in their USB.
    Hope this helped!

  49. I have transferred my file short cuts from pen drive to C: drive and formatted the pen drive. this command is not working for me. Is there any other way I can get my original data, please help. Its all my work file.

  50. Create a new folder and give a name to it…what ever you wish! and move the necessary documents/files into that new folder.

    This is just simple since you’ve already removed the shortcut virus!!

  51. What should I do if my laptop contains a virus that keeps creating undelete able folders in it’s hard disk
    Please help me

  52. @Meena Bassem, its working now.. thanks for this instructions. @Kapil Arya thanks for posting this thread it helps alot..

  53. umm.. i came to this site to see if i could recover any info. but when i plugged in my usb my avast automatically scan it and it said threat detected i read the file name and it just said E my usb letter. i scanned my usb manually and it found some more so i pressed fix automatically and it moved it to the virus chest. i opened the usb and it was empty even though my laptop was telling me that it’s half full so i reported the virus as a false positive and checked my usb and everything was back to normal. just needed to copy everything to laptop and format… kinda weird but acceptable

  54. Maybe the computer you used or laptop is the one infected by the virus… try installing anti virus softwares and scan the whole computer then remove the virus… after that, scan also the device full scan the device then remove the virus… this method solved my problem… Oh by the way, thank you Kapil Arya for posting this even if it’s a little bit old… :]

  55. Thank you it works perfectly (although I used the .bat from Meena Bassem from the updated comments)

  56. when our mobile while connecting to PC, in mobile it will show 2 more options to choose.

    there having 1- AS USB STARAGE(transfer ur file between computer & mobile)

    2- Media Device(MTP)
    ur mobile connected as USB device., please change this to MEDIA DEVICE, Now in ur My computer will show Phone name. click & open, ur problems solved.
    but if u will choose USB that problems still will be there

  57. Hey there, this happened to my phone, and so I’m afraid of losing some data (especially of my phone’s system). And now they’re all inside system volume information while they’re still in shortcut condition. Can any of you give me some advice??

  58. I’m using widows 8 i have same probe wid my pendrive n I format it unfortunately and its not working. Plzz help me to solve it.

  59. Thanks Kapil i was getting worried until i found this post. It was really helpful. cheers!!!

  60. Freaking DOPEs it would be more easier if u would go in to the usb folder and type *** in the search bar u would have all the contents of the USB displayed

  61. It did not work I used it for my phone and a file Microsoft excel .wsf and system volume information keep showing even when I type the code you gave . And after deleting they come back as shortcuts

  62. The code you gave works . but after some second as visible folders they go back as hidden files

  63. Kapil Arya, Since these shortcuts aren’t viruses does it mean it wont make any harm to my computer…
    my problem is, whenver i insert my usb to other computer it doesnt turn into shortcut, only when I insert the usb in my computer again, does it become a virus.. So seems to be the problem here.. Is it the USB or my computer

  64. ^^ I suggest you to scan your computer once, using whatever security suite you’re using. Additionally try the suggestions mentioned in article itself.

  65. I can Delete them I can Format them but when Im Copying my files back and replugin the USB the Shortcut its still there Im getting Irritated

  66. Mr.Kapil , Unfortunately there is a virus in my Usb .. when I connect it in Pc se. Removable disk folder will open but there is an other folder of removable disk with shortcut then when we open that shortcut folder It doesn’t open !.. Solution?

  67. Thanks that was ausome you saved my life the photos was the only copy of my sister weding

  68. Thanks man. This really helps. So furious about loosing all my files earlier?

  69. thanks for this help. i think that i fix the problem with your solution. but i still wandering if this problem will be back again other time

Share via
Copy link
Powered by Social Snap