How to make duplicates with different names from a single fi

English support forum

Moderators: Hacker, petermad, Stefan2, white

gold01
Junior Member
Junior Member
Posts: 8
Joined: 2015-04-21, 07:16 UTC

How to make duplicates with different names from a single fi

Post by *gold01 »

How to make duplicates with different names from a single file
sky66
Member
Member
Posts: 176
Joined: 2014-02-22, 08:44 UTC

Re: How to make duplicates with different names from a singl

Post by *sky66 »

gold01 wrote:How to make duplicates with different names from a single file
Ctrl+C
Ctrl+V
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

Shift+F5
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
gold01
Junior Member
Junior Member
Posts: 8
Joined: 2015-04-21, 07:16 UTC

Post by *gold01 »

the question was to copy file (make duplicates) to a number of files (not one to one)

and according to the file names from the list

example: copy file a.pdf to 3 different files taking names from file list.txt (ss.pdf, 231.pdf, dd.pdf)
User avatar
Dalai
Power Member
Power Member
Posts: 10016
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

gold01 wrote:and according to the file names from the list

example: copy file a.pdf to 3 different files taking names from file list.txt (ss.pdf, 231.pdf, dd.pdf)
How is anybody to know that you intend to take the file names from a list file if you don't say so? A good example of why it's important to phrase questions as exactly as possible.

I think (though I don't know) that there are some scripting solutions for such a task here in the forum. You could take a look at the MakeBAT plugin/addon that may help creating batch files that do the actual copying.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
nsp
Power Member
Power Member
Posts: 1939
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: How to make duplicates with different names from a singl

Post by *nsp »

gold01 wrote:How to make duplicates with different names from a single file
if you have a constant file list and want to copy the selected file, you can use TCBL to do

Code: Select all

command: <Path to>\tcbl.exe
parameters: "<path to>\list.txt" copy "%N" $f
if you need more complicated stuff, you can use askparam and/or pre configured command inside tcbl.ini
gold01
Junior Member
Junior Member
Posts: 8
Joined: 2015-04-21, 07:16 UTC

Post by *gold01 »

Dalai, thank you

I downloaded this file, registered it as packer according to install.txt.

But how to use it? could you please explain

let's say in folder d:\test I want to copy initial file A.pdf to three files according to the names listed in list.txt file(SS.pdf, 231.pdf, DD.pdf)
what should be the sintax of command line?
gold01
Junior Member
Junior Member
Posts: 8
Joined: 2015-04-21, 07:16 UTC

Post by *gold01 »

2nsp

thank you, but malware was detected from this URL
"File: TCBL/tcbl.exe, Enclosure: tcbl_dist.zip, malicious code name: PAK_Generic.005
The file is deleted."
User avatar
Dalai
Power Member
Power Member
Posts: 10016
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

But how to use it? could you please explain
I was wrong. I thought MakeBAT would help, because I hoped that you can work with a list file in the batch, but it doesn't look like it. So, you can either write a script by hand (if the list file is always the same) with any scripting language (Batch, PowerShell, Python etc) or try the tool nsp suggested.
gold01 wrote:thank you, but malware was detected from this URL
"File: TCBL/tcbl.exe, Enclosure: tcbl_dist.zip, malicious code name: PAK_Generic.005
The file is deleted."
You're using TrendMicro, aren't you? I'm pretty sure it's a false positive, according to this VirusTotal analysis.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
gold01
Junior Member
Junior Member
Posts: 8
Joined: 2015-04-21, 07:16 UTC

Post by *gold01 »

2Dalai


thank you

you are correct about trendmicro

ny personal problem that i am amateur in scripting and would appreciate very much if anybody could help and provide with ready to use solution.

best regards
User avatar
Vochomurka
Power Member
Power Member
Posts: 816
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

Single user license #329241
PowerPro scripts for Total Commander
gold01
Junior Member
Junior Member
Posts: 8
Joined: 2015-04-21, 07:16 UTC

Post by *gold01 »

2Vochomurka

thank you

but this script for duplicate files with numbering 01, 02, 03 etc and I need to take names from external txt file as I noted above like (SS.pdf, 231.pdf, DD.pdf)
User avatar
Vochomurka
Power Member
Power Member
Posts: 816
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

Have you tried Multirename tool (MRT)?
1) Make as many duplicates as you need;
2) Open MRT with these;
3) Press "Edit names";
4) In text editor replace column of target names with that from your list (powerful text editors like EmEditor can do this);
5) Save the file;
6) Press "Start!";
7) Enjoy

Added
Also try this script
Single user license #329241
PowerPro scripts for Total Commander
gold01
Junior Member
Junior Member
Posts: 8
Joined: 2015-04-21, 07:16 UTC

Post by *gold01 »

2Vochomurka
I tried to do this but as a result MRT duplicates just one name
result list:
"e:\aaa\TOC.pdf" -> "SS.pdf 321.pdf DD.pdf"

and I need to get in addition to initial TOC.pdf additional 3 files (and not one with this funny name)
User avatar
Vochomurka
Power Member
Power Member
Posts: 816
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

MRT does not duplicate files, my script does. Did you first perform step 1?
Single user license #329241
PowerPro scripts for Total Commander
Post Reply