If this is in regard to an optical drive malfunctioning, you should try deleting the upper and lower filters.
This can be done in the registry: http://pcsupport.about.com/od/driverssupport/ht/upperfilters-lowerfilters.htm
Or it can be done using a free burning program called ImgBurn. Download and install ImgBurn from one of the mirrors here: http://www.imgburn.com/index.php?act=download
You can put it on a usb drive and install from there.
Once installed, click on any of the options, Write files/folders to disc will be fine. Then click on Tools–>Filter Driver Load Order and remove the filters from there.
If this is not due to an optical drive, go through the troubleshooting steps on this page: http://pcsupport.about.com/od/findbyerrormessage/a/code-39-error.htm