For capacitor ic(t)=C *dvc(t)/dt, when switch is closed there is voltage difference between the +ve and -ve terminal. Hence, there will be flow of current until cap is charged. Since battery is a constant voltage source, the cap will be charged to 10 V and after that there won't be any flow of DC current through it and it will act as open circuit for DC current.