Copy files with modified directory structure

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
nevermind
Junior Member
Junior Member
Posts: 2
Joined: 2023-12-30, 18:31 UTC

Copy files with modified directory structure

Post by *nevermind »

Hi there !

I have files like this

c:\folder1\folder2\folder3\file1.txt

need to copy it without folder 3

Is it possible ?
User avatar
Wilhelm M.
Power Member
Power Member
Posts: 994
Joined: 2003-06-05, 10:45 UTC

Re: Copy files with modified directory structure

Post by *Wilhelm M. »

I'm not sure what the directory structure on the target should look like. Do you want all the files in folder3 of the source be in folder2 on the target?
Grüße/Regards,
Wilhelm
User avatar
nsp
Power Member
Power Member
Posts: 1806
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Copy files with modified directory structure

Post by *nsp »

Can you give us some more details about what you want to achieve.
Describe the source with files at all levels and more than a single folder name and describe the final target structure with files.

Just a guess, you can first copy all, move file form folder3 to folder2 and finally delete folder 3.

If you want to do it in one shot, the best is to create a file to process in background all the work will be in the Editor.
nevermind
Junior Member
Junior Member
Posts: 2
Joined: 2023-12-30, 18:31 UTC

Re: Copy files with modified directory structure

Post by *nevermind »

Wilhelm M. wrote: 2023-12-30, 20:43 UTC I'm not sure what the directory structure on the target should look like. Do you want all the files in folder3 of the source be in folder2 on the target?

yes

i have directory structure with extra folders, and need to search it by name , moove all file inside level up, and delete diir.
Post Reply