The president is the commander in chief of the armed forces so pretty much anything the military does is under the presidents authority or by authority delegated down the chain of command from him/her. The president could personally lead troops into battle if he wanted to. I think the only president to have served as an actual general during their time as president was George Washington during the whiskey rebellion.