Move files back to original place

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
batman
Junior Member
Junior Member
Posts: 3
Joined: 2023-01-16, 12:16 UTC

Move files back to original place

Post by *batman »

Hi all,
My data has a structure consisting of many subfolder. For an analysis, I have to temporarily put all files in 1 single folder. However, after the analysis I'd like to place the files back in their original subfolder. What is the best way to do this?

I figured that I could beforehand copy the original paths and put these in a .txt file, but then I still need a way to let TC move the files to the path as indicated in the .txt file.

Any help is appreciated :)
miskox
Member
Member
Posts: 166
Joined: 2003-06-11, 06:00 UTC

Re: Move files back to original place

Post by *miskox »

I have this task sometimes. For me it is enough to copy all files to an empty single folder, do the analysis you want and then delete this folder. Maybe this is good for you, too because you say "I'd like to place the files back in their original subfolder". So this means that you don't delete any files. Of course you need lots of space and time if you have large amount of data.

Uniquness of filenames is a must of course.

Another solution would probably be to have a list as you say and then use .bat to move them back.

Saso
#224551
User avatar
white
Power Member
Power Member
Posts: 4596
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Move files back to original place

Post by *white »

Perhaps Branch view (Ctrl+B) is helpful to you. Then it only looks as though all files are in the same folder.
batman
Junior Member
Junior Member
Posts: 3
Joined: 2023-01-16, 12:16 UTC

Re: Move files back to original place

Post by *batman »

@miskox I considered the copying however it's multiple TB's of data so this would be the last solution. Using a .bat sounds interesting. I'll do some research on that! Thanks

@white thanks, however, the analysis program can't read the files from TC, so this unfortunately won't work.
User avatar
white
Power Member
Power Member
Posts: 4596
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Move files back to original place

Post by *white »

Why not make symbolic links and remove these afterwards?
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Move files back to original place

Post by *Hacker »

... or hardlinks, if on the same volume.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
batman
Junior Member
Junior Member
Posts: 3
Joined: 2023-01-16, 12:16 UTC

Re: Move files back to original place

Post by *batman »

@white I tried this. However, the analysis software doesn't know what to do with this file since it's no longer .wav

@Hacker I will try this now. Thanks
Fla$her
Power Member
Power Member
Posts: 2248
Joined: 2020-01-18, 04:03 UTC

Re: Move files back to original place

Post by *Fla$her »

2batman
Use NTLinksMaker for this.
Overquoting is evil! 👎
Post Reply