How to move a directory to a network share
Posted on 2006-04-10
I'm experiencing difficulties moving a folder to a networks share (and even to a different volume!!)
All the method I've found and worked with, can only move dirs to the same volume (eg, c:\test c:\foo\test) but will fail if I use a different disk as destination (eg, c:\test e:\test).
I tried both with System.IO.Directory.Move() and Scripting.FileSystemObject.MoveFolder() but neither worked!
So, how to move a directory to a \\server\shared folder?