If you are connecting your USB drive on public computers and transferring data on it, there is a big possibility that it can be infected by a virus and next time when you plug it into your computer you can easily infect it without even knowing. In order to protect your USB drive and block viruses from accessing it the solution is to create a inf file on your USB drive called autorun.inf.