Marvel Comics had zero involvement in Batman Begins or The Dark Knight. Both films were written and directed by Christopher Nolan, with Jonathan Nolan co-writing the screenplays. Batman is a DC Comics character; Marvel and DC are separate, competing publishers.