PGN - removing duplicates

Sort:
Milos_Bogdanovic

Hi all.

I found tutorial how to merge multiple pgn files to single one.

I also found tutorial how to remove duplicates in scid vs. pc, but i can't save that new file. Everytime i open same pgn file i have to search and remove duplicates. Once I exit software it is back to begining.

In maintance mode there should be button compact database. but i cant press it. it is not bolded. Any help?

EscherehcsE

I don't use that program much, but I seem to remember that it treats PGN files as read-only. I think you'd have to convert the file to Scid format before removing duplicates.

Milos_Bogdanovic

Well it maintance window i can see it is set to read/write. Because I removed duplicates. Just can't save. They are removed as long as I'm in scid vs pc software. Once i leave it undo everything.

But I can try with that scid file. Just can't find how to convert. Any help?

EscherehcsE
Difermo wrote:

<snip>

But I can try with that scid file. Just can't find how to convert. Any help?

Two ways that I know of.

The "old school" method using DOS command prompt commands and the pgnscid.exe file. (See the Scid Help file for details. Look up "pgnscid" in the Scid Help index.)

The "drag and drop" method. Create a new database in Scid format. (The new Scid database will be empty.) Then open up the PGN database. Next, open the "Games List" window. At the bottom of the "Games List" window, you should see icons for both databases. Just drag and drop the PGN database icon over to the Scid database icon, and I think the games should be copied over to the Scid database.

Milos_Bogdanovic

found how to do old school. gona see will this help to clean database

EscherehcsE
Difermo wrote:

I found pgnscid commands (google). but dont know where to open cmd.. do i copy pgn file to scid location?

I'm not sure I know exactly what you're asking, but if you're not familiar with the DOS command prompt, it might be easier to try the "drag and drop" method. Smile

If you do want to try the "old school" method, it's probably easier to do everything in the Scid "bin\bases" folder. (That way, you won't have to worry about specifying paths.) The "pgnscid.exe" file is normally located in the Scid "bin" folder, so you'd first have to copy the "pgnscid.exe" file over to the Scid "bin\bases" folder. Next, copy your PGN file into the Scid "bin\bases" folder. Then open up a DOS command prompt window and point it to the Scid "bin\bases" folder, then type in the necessary conversion command.

Milos_Bogdanovic

well i done it with command prompt. Just needed to open as admin. I merged some pgn files (copy /b *.pgn merged.pgn) and converted that file to si4. From that file duplicates can be removed. But exporting back to PGN isn't possible (possible but scid vs pc reads only 1 milion games. since that pgn file have around 2 milion it reads only first 1 milion).

Thanks for helping to remove duplicates :)