Separate names with a comma.
Discussion in 'Computer Questions, Issues & Security' started by AakashAgarwal, Sep 9, 2015.
Kindly update me how to delete shortcut creating virus in USB drive using CMD promt.
If your Pendrive is already infected with a virus, you can safely delete the autorun.inf file.
Autorun.inf can be deleted in two ways.
First by using Windows Explorer:
Press Windows Key + E to open Windows Explorer. From the left hand tree, open the USB drive.
This should not trigger the auto run functionality of USB. Now from the left hand content pane, delete the autorun.inf file. Make sure that you are showing hidden files from Folder Options as autorun.inf is usually a hidden file.
Secondly, you can also delete the infected autorun file from command line.
Go to Run --->>> cmd.
Type the source of the drive
Now run the following command: attrib -h -r -s -a *.*. This will remove the attributes hidden, archive, system from all the files.
Type del autorun.inf.
This will delete the autorun.inf file.
Hope this will help you ...
Thanks for the reply
Open Command prompt as Administrator (Windows 7 or earlier: Windows key + R > Type CMD & ENTER, Windows 8: Search for “CMD” > Right click to CMD and Select “Run as Administrator” or right click over Start button and select “command prompt (Admin) “)
Connect Your USB storage (Pendrive/SD card) to your Computer.
Scan your storage with your antivirus program (Not compulsory but its effective) > If your antivirus found virus then delete it.
Type in Command prompt : attrib -h -r -s /s /d <Your USB drive letter>:\*.* (See <Your USB drive letter> from My computer and then type it For ex, if your drive letter is “D” then the command is like: ” attrib -h -r -s /s /d D:\*.* “)
To know about this command Type ” attrib /? ” In CMD.
Now your Shortcut files again convert to normal files. Delete unknown files from your storage aftercommand process completes. I highly recommend you to after removing shortcut virus copy your USB data to your computer > Format the USB storage > Then again re-copy USB data back.