Yikes, pretty bad situation.
Well, you could salvage the current setup if locating the necessary CDs for fresh install cannot be found (XP Upgrade CD + Qualifying Upgrade CD).
Unfortunately, the D:\ pathway for XP and it's dependencies would still be a bit scrambled. But with these steps, it should be more livable.
(1)- Download the trial version of Panda Antivirus
http://www.pandasoftware.com
(2)- Update and do a full system scan, as this software is excellent at killing viruses and spyware alike.
(3)- For good measure, download, update, and scan with Ad-Aware,
http://www.lavasoftusa.com
(4)- In a Windows Explorer Browser, go to :
Tools > Folder Options > View >
Put a checkmark next to all of the options that say 'Display full path, Display this, Display etc', and uncheck the 'hide hidden files and folders'. Uncheck both 'hide' options below.
Now go to the C:\ drive, and rename the program files folder and the windows folder. This will make sure you have nothing installed surreptitiously there that will cause problems later upon removal. Reboot the PC, check all the apps. IF everything works, delete the renamed Program Files and Windows folders on C. If you do run into trouble, then newly installed programs are going into C:\Program Files instead of D:\Program Files. This would be a monstrous headache, and as previously said, best fixed with a total backup and logical fresh install. Sparing this, it would be best to at least run a full Panda scan to make sure none of the old viruses and spyware items can zombie back to haunt you from that old WinME partition.
Saving grace option :
Would be fairly economic (and make the PC run faster as well!), to grab say an 80gb ide drive, and XP Home w/SP2 OEM from newegg for a total of around 120-130.
Just a thought, hope this ends well for you and your friend
