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!
Merge pgn's?
Moderators: Elijah, Igbo, timetraveller
-
- Points: 0,00
- Status: Offline (Active 3 Hours, 17 Minutes ago)
- Topics:
Merge pgn's?
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
https://krakenfiles.com/view/3d40667070/file.html
-
- Forum Contributions
- Points: 33 999,00
- Posts: 2585
- Joined: 05/02/2020, 10:42
- Status: Offline (Active 1 Month, 2 Days, 6 Hours, 18 Minutes ago)
- Medals: 2
- Topics: 194
- Reputation: 7481
- Has thanked: 6579 times
- Been thanked: 6863 times
Merge pgn's?
If all the pgn's are in a folder called WHATEVER then In a command terminal do this ..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!
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 !
-
- Forum Contributions
- Points: 11 738,00
- Posts: 120
- Joined: 04/11/2019, 7:11
- Status: Offline (Active 1 Month, 2 Days, 18 Hours, 21 Minutes ago)
- Topics: 8
- Reputation: 62
- Has thanked: 15 times
- Been thanked: 58 times
Merge pgn's?
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
-
- 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, 5 Hours, 55 Minutes ago)
- Topics: 318
- Reputation: 2765
- Location: ARMONIA
- Has thanked: 2241 times
- Been thanked: 3120 times
Merge pgn's?
I have used this for a long time: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!
► Show Spoiler
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...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 !
Make Someone Happy Today...
-
- 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, 21 Hours, 23 Minutes ago)
- Topics: 12
- Reputation: 218
- Location: France
- Been thanked: 288 times
Merge pgn's?
this one works well :
-bl20 to avoid games with too few moves
--fixresulttags to synchronize the result tag with the true winner
-D to avoid duplicated gamesdir /b /o *.pgn > pgn.lst
pgn-extract.exe -oall.pgn -D -bl20 --fixresulttags -fpgn.lst
pause
-bl20 to avoid games with too few moves
--fixresulttags to synchronize the result tag with the true winner
-
- Forum Contributions
- Points: 6 000,00
- Posts: 78
- Joined: 06/09/2020, 8:27
- Status: Offline (Active 1 Month, 4 Weeks, 1 Day, 4 Hours, 14 Minutes ago)
- Topics: 0
- Reputation: 8
- Been thanked: 12 times
Merge pgn's?
The simpliest way I'm using it for a long time.
1) Create mergePGN.bat
2) Write a command into it:
3) Place the file into a folder with PGNs
4) Double-click it! )
1) Create mergePGN.bat
2) Write a command into it:
Code: Select all
copy *.pgn output.pgn
4) Double-click it! )
-
- Forum Contributions
- Points: 40 305,00
- Posts: 1924
- Joined: 04/11/2019, 14:45
- Status: Offline (Active 3 Months, 5 Days, 19 Hours, 35 Minutes ago)
- Medals: 1
- Topics: 71
- Reputation: 2388
- Location: North-Italy
- Has thanked: 1185 times
- Been thanked: 2951 times
Merge pgn's?
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'.
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:
3) Place the file into a folder with PGNsCode: Select all
copy *.pgn output.pgn
4) Double-click it! )
-
- Forum Contributions
- Points: 11 741,00
- Posts: 70
- Joined: 16/03/2022, 13:56
- Status: Offline (Active 1 Week, 13 Hours, 17 Minutes ago)
- Topics: 6
- Reputation: 42
- Has thanked: 38 times
- Been thanked: 86 times
Merge pgn's?
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
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