I am having a directory having three levels of sub-directories in windows 7. I need to cut files from the last level sub-directories and paste them into a new parent directory, while preserving the directory structure. Please guide me how can I achieve this?

Please note that all solutions I have found on this forum refer to solutions in Unix and that too for copy and paste only. I need to figure out solution for window 7 and for cut and paste.

  • 1
    I'm not sure I understand fully, but do you mean you have files in, for example, C:\Test\Folder1\Folder2\Folder3 you want to copy to C:\Test2, but you want them to copy with Folder1\Folder2\Folder3 still intact? – Jonno Feb 3 '16 at 7:13
  • precisely Jonno. That is exactly what I want. There might be around 15 files in each of Folder3. I need to cut and paste around 5 of them into the new folder based on certain extension. – lonstud Feb 3 '16 at 7:23
  • Sounds like you'll need a script (to log the folder hierarchy) or some third-party application that already has this ability... The biggest problem you'll hit is what happens if the folder already exists with the same files in? – Kinnectus Feb 3 '16 at 8:11
  • The destination folder is a new folder. Completely empty. So the problem of folder of same files should not arise. – lonstud Feb 3 '16 at 8:30
  • @amitchaudhary The other problem I'm wondering about is how it knows which folders to include - will it always be the top three you want? In my example above, it would need to know not to include Test? – Jonno Feb 3 '16 at 10:08

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.