On Apr 23, 9:44*am, "William S" <nos...@spam.com> wrote:
> Thanks for all the tips
>
> I was given a utility that at one point did the same thing I'm trying to
> accomplish today, *only it was from the DOS era and written in Pascal, and
> no longer works. *I thought with the .NET framework there would be some
> methods that would make it a bit easier, since it seems I'm using the same
> philosophy that was used 15-20 years ago.
>
> "William S" <nos...@spam.com> wrote in message
>
> news:(E-Mail Removed)...
>
> >I know there a few different and probably betters way to accomplish what
> >I'm doing.
>
> > I've got file a network drive, that I want to copy to my local drive, and
> > I want to keep the same path (UNC) structure.
>
> > For instance, I've got ...
> > z:\parentfolder\subfolder1\subfolder2\file1.txt
> > z:\parentfolder\subfolder1\subfolder2\file2.txt
> > z:\parentfolder\subfolder1\subfolder2\file3.txt
>
> > and i want to move everything to my local disk so I'll have
>
> > c:\parentfolder\subfolder1\subfolder2\file1.txt
> > c:\parentfolder\subfolder1\subfolder2\file2.txt
> > c:\parentfolder\subfolder1\subfolder2\file3.txt
>
> > I've written code to recursively get the folder names then apending them
> > to a string, then written another recursive function to create that folder
> > structure on my local disk, then with a for loop I copy the file from
> > source to destination.
>
> > This seem like a lot of code, and time to me when I think .NET should
> > provide some easier methods to accomplish such a trivial task. *MaybeI'm
> > missing something.
>
> > Thanks for reading
If you are looking for a utility. look into rsync.
http://rsync.samba.org/