Hi, I am really-really new to VB .NET 2003, to the point where I dont know much syntax yet but Im learning by working through some problems and looking at example. Anyway I was hoping somebody can help me by actually working through the full code with me on how to do this:
I have a directory with many files, some of these files are duplicates of each other with the only difference being the name of the file itself. I would like to create a way to loop through all files and if the file is unique, move the file into a seperate directory. So when done, the second directory will contain 1 version of each file without any duplicates.
There are a few other things I want to do, but any help getting me started would be great. Some other things I want to do is to rename every file placed into the unique directory with a sequential 1 up number. So the first file would be 1.dat, the second 2.dat...
I know this is asking for a lot, feel free to limit your response.
Oh, I forgot, these files are binary files, NOT text files so a text compare will not work.
I have a directory with many files, some of these files are duplicates of each other with the only difference being the name of the file itself. I would like to create a way to loop through all files and if the file is unique, move the file into a seperate directory. So when done, the second directory will contain 1 version of each file without any duplicates.
There are a few other things I want to do, but any help getting me started would be great. Some other things I want to do is to rename every file placed into the unique directory with a sequential 1 up number. So the first file would be 1.dat, the second 2.dat...
I know this is asking for a lot, feel free to limit your response.
Oh, I forgot, these files are binary files, NOT text files so a text compare will not work.
Last edited by a moderator: