Fix: Files & Folders in USB turn into Shortcuts

We all use the USB as the detachable drive to transfer data, since its convenient to carry and can be easily operated plus it provides great speed in data transferring. Today, I came around a weird issue on my USB drive, which I think I should share with you all. I plugged my USB into my colleague’s laptop in order to transfer some files. When I plugged the USB back to my laptop, the files & folders in USB turn into shortcuts

FIX Files Folders In USB Turned Out Into Weird Shortcuts Fix: Files & Folders in USB turn into Shortcuts

This was crazy and I couldn’t delete these folder shortcuts, because the target file location was Command Prompt itself. Also you can’t move or delete the files stored in the front. In addition to this, there was a .Trashes folder inside the USB. It led me to suspect that some sort of virus may have got admitted into my USB. I didn’t waste any time and scanned the USB using my native security suite, i.e. Windows Defender. Windows Defender, on its part found something malicious. It performed some cleaning action and asked me to reboot. I did it, but there was still no change in the situation, as far as USB drive was concerned.

I searched on the Internet & came to know that there were many others like me facing this weird issue. I found a working solution and consider it worth sharing it here.

Files & folders in USB turn into shortcuts

1. Make sure that you have Hidden Files checked on in the ribbon inside Windows 8 File Explorer. Now open the Command Prompt with administrative privileges and  type this command and hit Enter. Here, substitute h: with your USB drive letter.

attrib -h -r -s /s h:\*.*

FIX Files Folders In USB Turned Out Into Weird Shortcuts 2 Fix: Files & Folders in USB turn into Shortcuts

2. After doing this, come back to the USB drive, you’ll find that command has been executed, but the shortcuts are still there. Since the files got executed, you can move them easily to your desired target location.

FIX Files Folders In USB Turned Out Into Weird Shortcuts 1 Fix: Files & Folders in USB turn into Shortcuts

3. Move all the necessary files to desired location, and let the shortcuts remain as it is. After this, format the USB drive. Next, run the System File Checker scan to the Windows. Also run a complete scan using Windows Defender, or any anti-virus you’re running.

4. Copy your data files back.

This should resolve the issue.

A little off the subject, but you definitely want to have a look at this comprehensive list, if you are looking for some free software for Windows.

Posted by on , in Category Windows with Tags
An Electrical Engineer by profession, Kapil is a Microsoft MVP in Windows - Consumer and a Microsoft Content Creator. He recommends that you create a system restore point first before tweaking the registry.
  • http://meena-tech.blogspot.com/ Meena Bassem

    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
    cls
    echo “Enter Drive letter”
    set /p driveletter=
    attrib -s -h -r /s /d %driveletter%:*.*

  • http://www.kapilarya.com/ Kapil Arya

    ^^ Why making it messy? It will also do the same job.

    Wouldn’t be it’s just easy to execute a simple command as mentioned in the article :)

  • http://meena-tech.blogspot.com/ Meena Bassem

    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,
    :D

  • http://www.kapilarya.com/ Kapil Arya

    ^^ In that case, OK. Provided, computer must recognise the USB drive letter, otherwise user has to again modify the .bat file.

  • Ramki Chowdary

    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.

  • http://www.kapilarya.com/ Kapil Arya

    ^^ 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 :)

  • fOOnOOn

    This recovered files but not folders! Is there any way to recover folders?

  • Endezeichen Grimm

    It doesn’t work

  • Helga

    Thank you so much! This fixed my problem.

  • chandrahas

    thank you your suggestion has worked

  • Lashan

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

  • http://www.thewindowsclub.com Anand Khanse
  • Bheks

    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.

  • http://www.kapilarya.com/ Kapil Arya

    ^^ This could be the virus issue pertaining to phone.

  • Roha Bhatti

    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

  • Dev

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

  • Dev

    plz help me sir

  • Grafik Krime
  • harmon aguilar

    Try this Powerful Antivirus Software, Small but terrible.lol Download here.. http://q.gs/5Rol5

  • Noralene

    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?

  • F44

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

  • ferodox

    when I try this command, I see “path not found – F:” … what can i do?

  • http://www.kapilarya.com/ Kapil Arya

    ^^ Recheck the command variables :)

  • actu.ong-tn.org

    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
    drives.

    http://tec.ong-tn.org/article5/usb-shortcut-recover

  • shary

    its working but its the same issue when i plug the usb again

  • http://www.kapilarya.com/ Kapil Arya

    ^^ What happen when you plug the USB to a different computer then?

  • mary

    i dont understand what u meant by drive letter

  • Gafurii

    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

  • http://meena-tech.blogspot.com/ Meena Bassem

    ok, a little update here

    title Fix files and folders turned to Shortcuts in USB Drive
    @echo off
    cls
    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)

    pause
    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

  • http://www.kapilarya.com/ Kapil Arya

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

    Repair-WindowsImage -Online -RestoreHealth

  • Bingo Pitjama

    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.

  • rajat Harmalkar

    Hi
    Kapil arya

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

  • Jspn

    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.

  • http://www.kapilarya.com/ Kapil Arya

    ^^ It should work, although I haven’t tried it on external hard disk :)

  • http://www.kapilarya.com/ Kapil Arya

    :)

  • saikumar

    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

  • http://www.kapilarya.com/ Kapil Arya

    ^^ 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.

  • Alei-Eldeen Mahammad

    Gee, I get Access denied -_-

  • http://www.kapilarya.com/ Kapil Arya

    ^^ Make sure you’re running Command Prompt as administrator.

  • Portia Quijano

    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?

  • Pontificating Pensadora

    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.

  • Chaitanyamayee

    Why it is showing Not resetting hidden file?

  • http://www.kapilarya.com/ Kapil Arya

    ^^ Can’t get you? You want to know why the command prompt not showing processed files?

  • Nazriya

    Thank you so much!!This worked :D

  • Vishal

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

  • Moses

    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

  • Ankit

    hi bheks ! had you find some solution ? I also got stucked with this problem.

  • http://www.kapilarya.com/ Kapil Arya

    ^^ Try connecting your phone to a different computer, see if that helps :)

  • MB Rubel

    It’s just awesome and works magically#Meena Bassem

  • Yathish Mallesh

    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…

  • http://www.kapilarya.com/ Kapil Arya

    ^^ Make sure you’re using administrative Command Prompt :)

  • Yathish Mallesh

    I am the adminstrator of my system, I typed cmd under start button

  • Yathish Mallesh

    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?

  • http://www.kapilarya.com/ Kapil Arya

    ^^ We hope so, if you have followed all the instructions mentioned in the article :)

  • Yathish Mallesh

    Thank you!!

  • snopy

    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
    thnks

  • Andreas Meyer

    Got this at a shop on my scandisk. Tried the above but doesn’t work.

  • Dhruv

    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!

  • http://www.kapilarya.com/ Kapil Arya

    ^^ Read the 3rd step, last two lines. If your system still have virus, try to Reset it, see if that helps.

  • Pisa

    does it mean that mac laptop is having virus?

  • venkatesh

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

  • misaniwantorap:)

    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- nakaharayumi@hotmail.com

  • willie

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

  • Junaid

    Thanks

  • http://www.cyberoops.com Hasnain Naeem

    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

  • Kevin Dondrea

    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.

  • Kevin Dondrea

    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.

  • Kevin Dondrea

    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.

  • Kevin Dondrea

    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.

  • Mohammad Iftekhar Yezdani

    Awesome ! Hail Meena

  • Endezeichen Grimm

    No, it is actually a known glitch.

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

  • A Wong

    Hi Meena,

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

  • Guest

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

  • antonio hermosa

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

  • antonio hermosa

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

  • antonio hermosa

    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

  • rocky

    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.

  • http://www.kapilarya.com/ Kapil Arya

    ^^ Have you tried this fix?

  • Chetan Atri

    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 chetan.atri45@gmail.com

  • rocky

    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

  • rocky

    hello kapil sir can u please tell me wat i shud do next??

  • http://www.kapilarya.com/ Kapil Arya

    ^^ 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.

  • Maurice Bremer

    Do you even know what you are talking about?

  • Sagar YADAV

    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.

  • Luqman Al Hakim

    this 1 finally work. thx

  • France

    i tried it on cmd but it said there, “Invalid switch”, dont know why. pls help me

  • Anam Rasool

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

  • ayan

    u just saved ma wedding memory… thanx alot dear
    God bless u…

  • http://www.kapilarya.com/ Kapil Arya

    ^^ Glad we could help :)

  • Talitha Fernandes

    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!

  • Yandere Ren

    it says path not found, what do I do?

  • anup

    thnx dude … it was really helpfull … thanx once again

  • Rohit

    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.

  • Sammy Sparks Kea

    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!!

  • Amit Yadav

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

  • just walking by

    hi meena

  • Albert

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

  • heyyyy!!

    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

  • md

    thanks it really helped me :*

  • Recent Comments