What is the logic behind path finding in RTS??

(Real Strategy Game)like age of empire,commando etc...