how can I restore windows xp back to factory setting without deleting all my files?
Try to use system restore
Start Menu > all programs > accessories > System Tools > System Restore
and choose the day you installed your windows and restore your system to this date.
Try to use system restore
Start Menu > all programs > accessories > System Tools > System Restore
and choose the day you installed your windows and restore your system to this date.
References :