How to Disable CD/DVD or USB Autorun in windows

when ever you plug a usb device to the system or insert a cd/dvd disk, The windows Autorun Run utility runs and displays certain options like Open files to

This a good utility provided by windows xp operating system, It is sometimes very dangerous too. When A virus infected Usb drive or Cd is plugged into the system, the virus gets a chance to attack you Operating system, by running automatically when you plug your device in. So, for this safety purpose, we need to Disable this Autorun feature in windows XP.