Problem re-installing windows xp

I have an old computer running windows XP. The computer got a virus and now wont reboot. I am trying to reload the OS, but I don't have the recovery cd. I do have a copy of windows XP but it is not bootable. Can someone help me with this

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Best thing you can do is format the drive and re-install from scratch, if you have data that you'd like to keep, look for windows xp bootable (free) and boot from that disc, copy whatever you need to a USB (make sure the files are clean!).

Then you just need to buy a copy of windows and install it since you don't seem to have installation media nor CD KEY
kmccollumAuthor Commented:
I do have the CD-Key, is there a way I can you the copy of windows I have.
what you're trying to do is simple but your problem is your xp cd is not bootable.  first thing first.  how old is the pc and does it have a floppy drive.  also i'm assuming that the pc is new enough where it will boot from a cd?  you need to setup a bootable cd or floppy that mounts the cd drive and assigns a drive letter to it.  once this is done, boot to the bootable disk and the insert the xp cd in the drive, in your command prompt you need to navigate to the cd drive letter, change directory to /i386 and execute the winnt.exe which will start the xp setup program.  i like to delete the existing partition, create a new one, and do a quick format on it to get rid of any trace of the old os, then follow the rest of the installation process.

let me know the answers to the questions at the beginning and also if you need help creating a bootable cd or floppy.
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

☠ MASQ ☠Commented:
Depends a lot on your current installation.
Does this scenario apply to you system?
kmccollumAuthor Commented:
I do have a floppy drive, however it is a USB floppy drive, The system will boot from the CD drive.
The computer is an HP Compaq dc5800 small with an s-ata hard drive

Detailed step by step instructions will be great.
Detailed step by step directions are at the link MASQUERAID posted already.  Here it is again.

How to Create a Bootable Windows XP Setup CD/DVD on a System with Windows Pre-loaded
>>  The computer got a virus and now wont reboot  <<   what happens?  any messages or errors?

you can go to:

download the iso and burn one of the images that will work for you, i haven't used any of these bootables so i'm not sure if they will mount the cd drive or not.  boot to the cd and see if they mounted the cd drive, if it did then go to the i386 directory on your xp cd.  you may want to run smartdrv.exe before you run the winnt.exe or else the install will run very slow.  i'll check to see if i have a good bootable cd that mounts the cd drive and has smartdrv.exe on it and make an iso of it if you need it.  i haven't uploaded iso to here before but i'm assuming they are allowed.  let me know how it goes

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kmccollumAuthor Commented:
Thanks for the help, I got it working using boot files to load the CD and Hard Drive, then loaded the OS from the CD.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.