If you prefer to use P/Invoke, it would be best that you change the title of
the post to "XCopy in P/Invoke".
To achieve XCopy in .Net, we may need to enumerate the contents of the
directory by using Directory.GetFiles() and Directory.GetDirectories(). Then
use FileCopy() to copy the files one by one.
Alternatively, we can use the following:
using System.Diagnostics;
ProcessStartInfo p = new ProcessStartInfo("xcopy");
p.Arguments = "/s c:\source c:\dest";
p.CreateNoWindow = true;
Process.Start(p);
I hope this helps.
--
Regards,
Felix Wang
"Brian Link" <bl***@visi.com> wrote in message
news:go********************************@4ax.com...
Is there a Platform way to grab an entire directory and copy it? Or
will I have to iterate through the files and binary write them?
Thanks
BLink
Brian Link in St. Paul
----------------------
"Just because we have chiseled abs and stunning features,
doesn't mean that we too can't not die in a freak gasoline fight
accident."