|
| Synchronising files |
|
|
|
|
| Messages |
|
Related Types |
This message was discovered on microsoft.public.dotnet.framework.
| JezB |
I want to synchronise files between directories as part of my .NET application. Ideally I'd like to invoke an XCOPY-like operation which copies only new and changed files from source to target. Is anything like this available as part of the framework ? If not how do I invoke a windows command from within a .NET application and capture the output ?
|
|
|
| |
|
| |
| | |
| |
| Morten Wennevik |
On Wed, 4 Aug 2004 11:12:50 +0100, JezB <Click here to reveal e-mail address> wrote:
[Original message clipped]
I would recommend a windows service to monitor changes in the directory and for instance File.Copy to copy the files.
If you want to fire xcopy from within your program you can use the Process and ProcessStartInfo (and perhaps ProcessInfo) classes. They will also let you specify your own input, output, and error output.
-- Happy coding! Morten Wennevik [C# MVP]
|
|
|
| |
|
|
| |
|
|
|
|
|
|
|
|
BootFX
Reliable and powerful .NET application framework. |
|
|
|
|
|
|