Resetting the Arduino with code and no button?

Basically if you want to do this you are designing your system incorrectly.