In September 1948 Rijadi was promoted and given control of four battalions of soldiers and one of student soldiers. Two months later, the Dutch launched a second attack, this time on the nearby city of Yogyakarta (then serving as the nation's capital). Although Rijadi and his troops launched attacks on Dutch forces approaching Solo through Klaten, ultimately the Dutch soldiers entered the city. Applying a divide and conquer policy, Rijadi was able to drive the forces out in four days.