Not able to open drives on hard disk by double click due to Autorun.inf Virus

Sometimes it happens in windows XP that you are not able to open drives on your hard disk. When you double clicking on the drives icons or right click on the drive-->explore in My computer ,the drive does not open.
This problem is generally caused by most of the viruses which infect windows XP system. They block or restrict your access to any of the drives.
What actually Causes this Problem?
Normally when a virus infects a windows system which causes a drive opening problem, it automatically creates a file named autorun.inf in the root directory of each drive.
This autorun.inf file is a read only ,hidden and a system file and the folder option is also disabled by the virus. This is deliberately done by the virus in order to protect itself. autorun.inf initiates all the activities that the virus performs when you try to open any drive.
You have to just delete this file and restart your system to correct this problem.
Steps to delete the file:
1.Start-->Run--> Type Cmd -->Click Ok
In the command prompt type, c:\ prompt
attrib a*.inf -h -a -s -rdel autorun.inf
Note : Then Change the Drive Letter C,D,E,F,G....and repaeat the Same Process.