TimBiesiek
Programmer
I am trying to move some directories and files across volumes using .NET.
The code I currently have is:
Well, it's something to that effect, but it throws an exception as below:
System.IO.IOException: Source and destination path must have identical roots. Move will not work across volumes. at System.IO.Directory.Move(String sourceDirName, String destDirName)
I need to be able to move these files and directories across volumes to allow nightly backups of the data to be stored on our tape drives...
Any help would be much appreciated!
![[banghead] [banghead] [banghead]](/data/assets/smilies/banghead.gif)
The code I currently have is:
Code:
directory.move("C:\Test.txt","D:\Test050101.Txt")
Well, it's something to that effect, but it throws an exception as below:
System.IO.IOException: Source and destination path must have identical roots. Move will not work across volumes. at System.IO.Directory.Move(String sourceDirName, String destDirName)
I need to be able to move these files and directories across volumes to allow nightly backups of the data to be stored on our tape drives...
Any help would be much appreciated!
![[banghead] [banghead] [banghead]](/data/assets/smilies/banghead.gif)