Do you have the OS installation CD/DVD? Is your computer assembled by a manufacturer, e.g., Dell or HP? Or did you or someone else assemble the components?
If you have the OS installation CD/DVD, you can boot from the optical drive and do a clean install of the OS from the media. After OS install is complete, you will have re-install all your programs.