want to move the folder from one drive to another
-
Hye guys I have one folder contining N numbers of child folders and all the folders also have N Number of child folders and then files. So in total it is a mess. I want to move the folder from one drive to another which is not supported. I have to copy and paste the complete structure. Do any one have a generic code for this. Though I can write the code but I am very lazy this week. if any one have please send it over.
-
Hye guys I have one folder contining N numbers of child folders and all the folders also have N Number of child folders and then files. So in total it is a mess. I want to move the folder from one drive to another which is not supported. I have to copy and paste the complete structure. Do any one have a generic code for this. Though I can write the code but I am very lazy this week. if any one have please send it over.
Rizwan bashir wrote: move the folder from one drive to another which is not supported Moving files from one volume to another is not supported. You have to copy the file structure over, then go back and delete the originals. Rizwan bashir wrote: Though I can write the code but I am very lazy this week. if any one have please send it over. Not our fault! Why should I send you code for free that cost me money to write? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Rizwan bashir wrote: move the folder from one drive to another which is not supported Moving files from one volume to another is not supported. You have to copy the file structure over, then go back and delete the originals. Rizwan bashir wrote: Though I can write the code but I am very lazy this week. if any one have please send it over. Not our fault! Why should I send you code for free that cost me money to write? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
Dave Kreskowiak wrote: Why should I send you code for free that cost me money to write? ok tell me how much you charge for this type of code ?
-
Dave Kreskowiak wrote: Why should I send you code for free that cost me money to write? ok tell me how much you charge for this type of code ?
-
Hye guys I have one folder contining N numbers of child folders and all the folders also have N Number of child folders and then files. So in total it is a mess. I want to move the folder from one drive to another which is not supported. I have to copy and paste the complete structure. Do any one have a generic code for this. Though I can write the code but I am very lazy this week. if any one have please send it over.
Try using this Directory.Move("SourceDirName", "destDirName") I think this should solve your problem. Mandar Patankar Microsoft Certified professional
-
Try using this Directory.Move("SourceDirName", "destDirName") I think this should solve your problem. Mandar Patankar Microsoft Certified professional
this will not work when you are moving the folders from one drive to another. like c:\abc to D:\abc
-
this will not work when you are moving the folders from one drive to another. like c:\abc to D:\abc
You can add a DirListBox and FileListBox to a form and set the visible property to False. These controls enumerate the folders and files on a computer. Use these controls to get the file names so that you can move them to the next drive creating folders as needed. If you don't want to add controls to your form and figure out how to use them, learn how to use the API functions FindFirstFile, FindNextFile, and FindClose in the kernel32 DLL. I can give you some examples on how to use these calls if you desire.