my toshiba turns off within a few seconds of being turned on. I was thinking I had a bad power cord. After reading some of

Solution
Cold be a bad motherboard. Try different RAM, try removing battery and power cord, hold in the power button for about 30 seconds, try again.