> Hi,
>
[quoted text clipped - 12 lines]
>
> Thanks!
To begin with it would've been nice if you explicitly stated the classes
you're using.
I'm assuming you are using the FileInfo.MoveTo method, and if you look
at the documentation for this, it expects a destination *file-name*, not
a directory.
As such, you need to specify what filename it should have in the target
directory as well.
Something like this:
files[i].MoveTo(Path.Combine(dirs[0].ToString(),
Path.GetFileName(files[i].Name)))
(note, untested, writing from documentation only)

Signature
Lasse Vågsæther Karlsen
mailto:lasse@vkarlsen.no
http://presentationmode.blogspot.com/
PGP KeyID: 0xBCDEA2E3
Arjen - 17 Jan 2008 16:21 GMT
> > Hi,
>
[quoted text clipped - 36 lines]
>
> - Tekst uit oorspronkelijk bericht weergeven -
Thanks for your reply. This works! Thanks!