maybe you should have checked the SDK docs on the topic, one problem there is that the dir name should have been written like this: _LIT(KDirName, "C:\\Test\\"); (i.e '\' in doubles.), same goes with the other string as well.
Also next time, try to include the error note shown, because it tells exactly what goes wrong, and improves your possibilities of people answering your questions.