I need to develop an application that will run on a client machine & copy files from a specific folder on the server. But there are 2 small things:
1. All files within the folder & sub-folders need to be copied.
2. A check needs to be done to see the DateModified property of the files already on the client & only those files whose DateModified property is different from the server copy of the file should get copied (reducing network overhead).
I already have a basic DOS batch file which uses XCOPY currently doing this, but the problem is that it copies files from the server only if:
ServerCopy.DateModified > ClientCopy.DateModified
if ServerCopy.DateModified < ClientCopy.DateModified then it should still copy the file (but isn't happening with the present batch file).
I didn't know if can be done as a Console Appl or a Win Appl so I've posted it here. Please give any suggestions/ideas or perhaps some basic code to start working with.
Thanx in advance.
1. All files within the folder & sub-folders need to be copied.
2. A check needs to be done to see the DateModified property of the files already on the client & only those files whose DateModified property is different from the server copy of the file should get copied (reducing network overhead).
I already have a basic DOS batch file which uses XCOPY currently doing this, but the problem is that it copies files from the server only if:
ServerCopy.DateModified > ClientCopy.DateModified
if ServerCopy.DateModified < ClientCopy.DateModified then it should still copy the file (but isn't happening with the present batch file).
I didn't know if can be done as a Console Appl or a Win Appl so I've posted it here. Please give any suggestions/ideas or perhaps some basic code to start working with.
Thanx in advance.