How to move a directory between two different volumes
-
hi all, how can i move a directory (also sub directory and files) from one volume to other volume ?
Directory.Move
function fails when source and target drive are different. Please suggest -
hi all, how can i move a directory (also sub directory and files) from one volume to other volume ?
Directory.Move
function fails when source and target drive are different. Please suggestDear as much as i know you have to do complete task in two parts, first copy all the subfoloder and files in new drive location ie. from c drive's source folder to d drive's destination folder and second delete the folder exist in c driver ie, source folder
-
Dear as much as i know you have to do complete task in two parts, first copy all the subfoloder and files in new drive location ie. from c drive's source folder to d drive's destination folder and second delete the folder exist in c driver ie, source folder
hi sumit,
sumit prakash sharma wrote:
first copy all the subfoloder and files in new drive location
how can i copy folder from one drive to second
-
hi sumit,
sumit prakash sharma wrote:
first copy all the subfoloder and files in new drive location
how can i copy folder from one drive to second
it's too easy and short code now i m going to give complete code for coping and deleting My.Computer.FileSystem.CopyDirectory("C:\SourceDirectory", "D:\DestinationDirectory") My.Computer.FileSystem.DeleteDirectory("C:\SourceDirectory", FileIO.DeleteDirectoryOption.DeleteAllContents) if above code is usefull then plz reply
-
Dear as much as i know you have to do complete task in two parts, first copy all the subfoloder and files in new drive location ie. from c drive's source folder to d drive's destination folder and second delete the folder exist in c driver ie, source folder
it's too easy and short code now i m going to give complete code for coping and deleting My.Computer.FileSystem.CopyDirectory("C:\SourceDirectory", "D:\DestinationDirectory") My.Computer.FileSystem.DeleteDirectory("C:\SourceDirectory", FileIO.DeleteDirectoryOption.DeleteAllContents) if above code is usefull then plz reply
-
it's too easy and short code now i m going to give complete code for coping and deleting My.Computer.FileSystem.CopyDirectory("C:\SourceDirectory", "D:\DestinationDirectory") My.Computer.FileSystem.DeleteDirectory("C:\SourceDirectory", FileIO.DeleteDirectoryOption.DeleteAllContents) if above code is usefull then plz reply
Thanks a lot sumit 5 from me
-
Thanks a lot sumit 5 from me
Thanks