from an old post of mine
Tired of losing drivers when you reinstall XP?
Posted by: EricB
part of this trick was courtesy of PCWorld
download the proper OS batch file to your desktop or your C drive (It didn't work when I copied it from another partition). If it don't download, copy and paste it in notepad and save it as drivercopy. rename the .txt extension to .bat. viola, you now have a batch file.
open it. it will open command prompt. it will copy the files to your C drive
it will save it as a hidden folder called olddrivers. (you have to unhide them in folder options to see them. right click the drive, select properties and unhide). you can now burn it to disk (I would burn the batch file too). if you ever have reformat, you can throw this disc in (make sure you use the add new hardware wizard or update in device manager.
if it ask for more files, browse to the cd) when you are done. it will contain all of your latest drivers.
edit. the links doesn't seem to work anymore. copy this into notepad and save it as a bat file on your desktop
echo This batch file is meant for use ONLY with Windows XP.
echo It copies certain files and folders out of the Windows folder so that
echo they are still on your hard drive when you delete that folder and
echo reinstall Windows.
echo Written by Lincoln Spector for PC World.
xcopy c:\windows\help /h /y
xcopy c:\windows\inf /h /r /y
xcopy c:\windows\system /h /r /y
xcopy c:\windows\system32 /h /r /y
xcopy c:\windows\system32\drivers /h /r /y