If you want to prevent viruses that uses autorun.inf to infect your USB flash drive, try to do this:
- Open your flash drive via Command Prompt (do this via Start->Run->cmd.exe)
- Change your logged drive to your USB flash drive (e.g. if your drive is at drive E: then type E: on the command prompt then press enter)
Note: Before doing this you need to make sure your USB flash drive is clean:
Clean the virus left over if any:
Type -> ATTRIB -H -R -S AUTORUN.INF then press enter
Type -> DEL AUTORUN.INF then press enter - Create a folder named: AUTORUN.INF on the root directory of your flash drive. (to do this type the command: MD\AUTORUN.INF). If an error: a subdirectory already exists… shows, try to follow the instruction above to remove existing autorun.inf before doing this instruction.
The reason why this will avoid future infection is that autorun.inf viruses usually generates a file autorun.inf. Having an AUTORUN.INF folder on the root directory of your drives will make virus programs unable to create their own autorun.inf file, virus can’t even overwrite it because it’s a folder and not a file.
No comments:
Post a Comment