I want to copy in a existing folder in cd

Hai Guys,
I am using vc++ for developing nerocmd for my own use. can anyone send how to open existing directory in cd rw or dvd rw and write some files on to it. I want code example or how i open a folder from cd through my code.