As long as you are just going between two cities with a direct train line it's trivial. The problem is if you are trying to take a train between two cities without a direct train line, like if you wanted to go from Berlin to for example Lisbon instead of Vienna.