copy files with same filenames to the different folders

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
harumscarum
Junior Member
Junior Member
Posts: 6
Joined: 2018-07-22, 19:49 UTC

copy files with same filenames to the different folders

Post by *harumscarum »

I have 4000 files - 4 different extensions and same filenames from 0001.* to 1000.*
Need to put them to the 1000 folders (same name as filenames, 0001 - 1000) so each folder will contain 4 files of the same filenames and different extensions
Is there any way to do it in TC?
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: copy files with same filenames to the different folders

Post by *Stefan2 »

Hi harumscarum and welcome.

For such individual tasks a batch (or PoSh/VBS/JS/AHK) would be IMHO the best way.

TC can aid you by providing a list with (\path\)names of all selected file by use of parameters like %F, %L or %WF and also "%T"
(right click a button on the buttonbar > choose "Modify" > in the open dialog press F1 and read the help)


In your script you would say:
- for each line / file
--- copy file BASE.EXT to \BASE\BASE.EXT
- Next file



Depending on your file and folder structure you could use the Multi-Rename Tool too:
- select all files
- launch MRT
use
Name mask: [N]\[N]
Extension: [E]



FROM:
0001.ext
0002.eee
0002.ext
0003.eee
0003.ext
0003.exx


TO:
0001\0001.ext

0002\0002.eee
0002\0002.ext

0003\0003.eee
0003\0003.ext
0003\0003.exx



 
Post Reply