John,
There is nothing in the framework to support this outright. You can
iterate through all the directories and sub directories in the directory,
and copy the items yourself.
Also, you might want to try the SHFileOperation API function. It will
allow you to copy a directory from one location to another. You will have
to call it through the P/Invoke layer.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"John Bowman
jo*********@thermo.com>" <<Remove this before reply> wrote in
message news:uB**************@TK2MSFTNGP12.phx.gbl...
I need to copy a directory to another locaiton. Is there some .Net
framework method I cannot find for copying a directory from 1 location to
another? I found the File.Copy(), but there does not seem to be a
Directory counterpart. Or do I have to code my own recrusion routine to do this?
TIA,
--
John C. Bowman
Software Engineer
Thermo Electron Scientific Instruments Div.
<Remove this before reply> jo*********@thermo.com