Dundee will go to Dumbarton in the fifth round of the Scottish Cup after beating Falkirk 3-1, while Linlithgow Rose became the first Junior team to reach the last 16, beating Forfar in a replay.