Thanks for your replies,
creating a ZIP file with the contents will probably be more useful
are you advising me to zip the entire content of the folder?
ohh! that can not be possible in my case.i am creating file explorer like application which displays the remote m/c files in a tree format.
Make sure the directories are also present int he System B
no it doesn't..so that i need to create a object,put the files details and serialize it...any other ideas?