I am trying to create a temporary folder that users can put files into, then, when they click a button it moves the contents of the folder to a different folder on the users HardDrive. I believe it would work, except I am getting two errors, which I'll post bellow. Thanks for all your help, guys! Gibson
Note, Line 99 is "File.Copy" line.
Thanks again ∆ Gibson
Well, I assume you are talking about the 'File.Move' line, not 'File.Copy'...
In any case, the problem is fairly clear-
File.Move acts on a single file at a time, not an entire directory. The reason you get that error is because you are trying to feed an array of strings into a function that only accepts a single string as a parameter!
If you want to copy the operation over every single element in the array, you'll need to use a for loop, like this-
Then, the files will be moved one by one, instead of trying to do it all in one operation (which it doesn't actually know how to do).
answered Jan 12 '12 at 09:50 PM