Merge pgn's?

Moderators: Elijah, Igbo, timetraveller

Jmanion
Forum Contributions
Points: 11 738,00 
Posts: 120
Joined: 04/11/2019, 7:11
Status: Offline (Active 1 Month, 2 Days, 20 Hours, 34 Minutes ago)
Topics: 8
Reputation: 62
Has thanked: 15 times
Been thanked: 58 times

Merge pgn's?

Post by Jmanion »

Ok I figured I would ask since many people are a lot smart than me. I have 50 pgn's, usually what I do is copy the games 1 by 1 in to a bigger database. It takes awhile but it gets the job done.

Does anyone know a faster way to do this?

Thanks and Happy Holidays to everyone!
Skynet
Points: 0,00 
Status: Offline (Active 2 Hours, 48 Minutes ago)
Topics: 

Merge pgn's?

Post by Skynet »

Here is small, but very useful portable program for pgn merging. Put as much pgn files as you want in to the PGN MERGER v3.0 folder -> double click on ()PgnMerger.exe file -> all the pgn files will be merged in one file with name "MergeList.pgn".
https://krakenfiles.com/view/3d40667070/file.html
Nemesis

Top contribute Forum Top Active Users
Forum Contributions
Points: 33 999,00 
Posts: 2585
Joined: 05/02/2020, 10:42
Status: Offline (Active 1 Month, 2 Days, 8 Hours, 32 Minutes ago)
Medals: 2
Topics: 194
Reputation: 7481
Has thanked: 6579 times
Been thanked: 6863 times

Merge pgn's?

Post by Nemesis »

Jmanion wrote:Ok I figured I would ask since many people are a lot smart than me. I have 50 pgn's, usually what I do is copy the games 1 by 1 in to a bigger database. It takes awhile but it gets the job done.

Does anyone know a faster way to do this?

Thanks and Happy Holidays to everyone!
If all the pgn's are in a folder called WHATEVER then In a command terminal do this ..

cd WHATEVER or drag the folder onto the terminal window and drop
then

copy *.pgn NewName.pgn

now all your pgn's are in one file called NewName.pgn

copy to your database.

If you use Chessbase its even easier .. ctrl-click on all the pgn's then drag into your base pgn

Its 2am - no coffee yet !

EDIT : PgnMerger mentioned by Skynet does exactly what I'm saying - easier to use !
Jmanion
Forum Contributions
Points: 11 738,00 
Posts: 120
Joined: 04/11/2019, 7:11
Status: Offline (Active 1 Month, 2 Days, 20 Hours, 34 Minutes ago)
Topics: 8
Reputation: 62
Has thanked: 15 times
Been thanked: 58 times

Merge pgn's?

Post by Jmanion »

Thank you guys so much this will be so much easier. I wish I would have asked 15 years ago instead of wasting all this time. Thanks again hope everyone has a great holiday
ZamChess
I've been banned!
Points: 6 000,00 
Posts: 1828
Joined: 05/11/2019, 6:35
Status: Offline (Active 1 Year, 4 Months, 1 Week, 6 Days, 8 Hours, 8 Minutes ago)
Topics: 318
Reputation: 2765
1
Location: ARMONIA
Has thanked: 2241 times
Been thanked: 3120 times

Merge pgn's?

Post by ZamChess »

Jmanion wrote:Ok I figured I would ask since many people are a lot smart than me. I have 50 pgn's, usually what I do is copy the games 1 by 1 in to a bigger database. It takes awhile but it gets the job done.

Does anyone know a faster way to do this?

Thanks and Happy Holidays to everyone!
I have used this for a long time:
► Show Spoiler
a) copy what is written here
b) open a "new .txt" file
c) paste the copied rows in it
d) close and save
e) right click on the "new .txt" file, select "Rename" and change to "X-PGN-Glue.bat".
Also change the "txt" extension to "bat"
f) "Enter" 2x
g) copy or move this "X-PGN-Glue.bat" to the folder with the pgn archive and double click on it.
That is all...
:sm36:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Later, I simplified it like this:
► Show Spoiler

Thus all merged games will be called "X" and will be at the bottom of the page and you don't have to look for where it is when sorted alphabetically...
I wish you all good health and happiness !
ImageMake Someone Happy Today...
deeds
I've been banned!
Points: 6 000,00 
Posts: 246
Joined: 08/11/2019, 7:32
Status: Offline (Active 1 Year, 9 Months, 2 Weeks, 5 Days, 23 Hours, 37 Minutes ago)
Topics: 12
Reputation: 218
1
Location: France
Been thanked: 288 times

Merge pgn's?

Post by deeds »

this one works well :
dir /b /o *.pgn > pgn.lst
pgn-extract.exe -oall.pgn -D -bl20 --fixresulttags -fpgn.lst
pause
-D to avoid duplicated games
-bl20 to avoid games with too few moves
--fixresulttags to synchronize the result tag with the true winner
perejaslav
Forum Contributions
Points: 6 000,00 
Posts: 78
Joined: 06/09/2020, 8:27
Status: Offline (Active 1 Month, 4 Weeks, 1 Day, 6 Hours, 27 Minutes ago)
Topics: 0
Reputation: 8
Been thanked: 12 times

Merge pgn's?

Post by perejaslav »

The simpliest way I'm using it for a long time.

1) Create mergePGN.bat
2) Write a command into it:

Code: Select all

copy *.pgn output.pgn
3) Place the file into a folder with PGNs
4) Double-click it! )
kramnik

Top contribute Forum
Forum Contributions
Points: 40 305,00 
Posts: 1924
Joined: 04/11/2019, 14:45
Status: Offline (Active 3 Months, 5 Days, 21 Hours, 49 Minutes ago)
Medals: 1
Topics: 71
Reputation: 2388
Location: North-Italy
Has thanked: 1185 times
Been thanked: 2951 times

Merge pgn's?

Post by kramnik »

You should place the output file somewhere else so that it's not read between the present pgn files, just to be safe. Usually I create a folder and I readdress the output there:

type *.pgn > 1\output.pgn

where 1 is the folder having name '1'.
perejaslav wrote:The simpliest way I'm using it for a long time.

1) Create mergePGN.bat
2) Write a command into it:

Code: Select all

copy *.pgn output.pgn
3) Place the file into a folder with PGNs
4) Double-click it! )
Lotus340
Forum Contributions
Points: 11 741,00 
Posts: 70
Joined: 16/03/2022, 13:56
Status: Offline (Active 1 Week, 15 Hours, 31 Minutes ago)
Topics: 6
Reputation: 42
Has thanked: 38 times
Been thanked: 86 times

Merge pgn's?

Post by Lotus340 »

Oh dear, a lot of complicated instructions on this thread! 😉

In Android, the simplest and easiest way is to use this Split /Merge Files app. It's free on the Play Store.

I frequently use it to merge pgns. It's quick and easy and works like a charm.

Here's the link:
https://play.google.com/store/apps/details?id=com.direstudio.utils.filesplitter
Post Reply

Return to “Requests Section”