Is there a way to bypass the exception as named in the question title? I have absolutely no idea what to do, I need to change the directory names for a whole lot of directories and it would be much faster to programme it, but this exception has cause me some serious headaches… The code isn’t complicated, everything works fine except that one line of code:
Directory.Move(folderName, path + "\\" + novoIme);
Thanks in advance for any sort of help 🙂
Perhaps the source and destination paths are on different volumes?
Directory.Movemethod does not support cross-volume moves.You will have to implement your own routine to do this, or use someone else’s. FolderMove on CodePlex comes up in my search results.