Question How to copy data from a CD to the local hard drive??

bentom123

Member
Joined
Feb 22, 2012
Messages
9
Programming Experience
1-3
Hi guys,

I haven't posted in a while, and I was wondering how do you copy the entirety of a CD to the local hard drive?

I have tried using the code:

My.Computer.FileSystem.CopyDirectory("D:\", "C:\CD"), but the copy fails with the information that it cannot copy from a root directory.

Is there anyway of copying the whole of the CD drive to the local hard disk??

Thanks,
 
Last edited by a moderator:
Dim dirs = My.Computer.FileSystem.GetDirectories("D:\")
Dim files = My.Computer.FileSytstem.GetFiles("D:\")

For Each d in dirs

' copy directories

Next

For Each f in files

'copy files

Next
 
Back
Top