Just set a new rally point by right-clicking on the map (with the factory selected, of course, and without holding Shift). This will replace the patrol route. You can then start a fresh patrol route if you like.
Scout to see it coming. Build point defence inside the shields of your factories. Build tanks, lots of them.
Worst case you can send your commander to his base and capture everything, and take it from there.