Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Please Help Me How to do this, as soon as possible, its very urgent, Thanks in Advance,

Source : C:\Data

Destination : C:\Backup\Data


Write a program that compares one directory to another "including sub-directories if user requires" and keeps them identical by copying or deleting files
and creating or deleting directories in the destination directory.
-> If a file is different in size or date and time then it should be replaced.
-> If a file is does not exist in the destination folder it must be copied.
-> If a file exists in destination but not source it must be deleted from destination.
-> If a directory does not exist in the destination it must be created.
-> If a directory exists in destination but not in source it must be removed from destination.
-> The whole process must be logged in a text file for viewing later.
-> The viewing of logs must be viewed by an external text editor like notepad etc.
-> Keep the data the user has entered in an xml file for ease of reuse.
-> Show a progress bar of the replication process. Create and use classes where possible. Use c# as the language.
Posted
Updated 9-Mar-15 11:50am
v2
Comments
Sergey Alexandrovich Kryukov 9-Mar-15 17:51pm    
Help with what? This is not a question. Is it an order to develop some code?
—SA

Your homework is set to test what you have learned, not what some random people on the Internet know.

If you cannot do your own homework, then talk to your teacher.

Whilst we're happy to help with specific questions about code you have written, we will not do your homework for you.
 
Share this answer
 
Developing some application which backs up "C:\Data" to "C:\Backup\Data" won't worth the effort, not even as a study task. This would defeat the purpose no only programming, but computing and using computers in general. And if you did not try to solve it all by yourself, no help can be helpful for you.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900