PGN Extract

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Dann Corbit, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Ferdy
Posts: 4591
Joined: Sun Aug 10, 2008 1:15 pm
Location: Philippines

Re: PGN Extract

Post by Ferdy » Sun Oct 23, 2011 1:11 am

JManion wrote:Windows XP 64 bit, network 4.0 installed.

I guess I did not understand the read me file. I assumed since it says "drop your pgn file into the folder containing batch script and on the command line type process."

I understood this to mean put my pgn file in this folder and double click on the process windows batch file. This did generate the following pgn files, black wins, white wins, draws, no results, processed. However all of these files where blank.

I now tried to just double click on pgn-extract(step 2) to see what happens. It says processing stdin but after an hour it still says that and nothing seems to be happening.
Try the following:
1. copy the "pgn-extract interface.exe" to your desktop and run it there.
2. if (1) will not work, install the .net framework 3.5 SP1, from here
http://www.microsoft.com/download/en/de ... ?id=25150 .
Restart the pc and run the pgn-extract interface program.

That is for now.

JManion
Posts: 195
Joined: Wed Dec 23, 2009 7:53 am

Re: PGN Extract

Post by JManion » Sun Oct 23, 2011 1:42 am

Jim Ablett wrote:
JManion wrote:Yeah i downloaded that file also. When I tried that file it would not run and I got the following error.

unable to find a version of runtime to run this app.
try 'pgntrim5' included with 'pgnutils' > http://dl.dropbox.com/u/5047625/PGNUTILS.zip

Jim.

Thanks for the try...

sadly this program cannot run due to an incompatibility with windows 64.....

JManion
Posts: 195
Joined: Wed Dec 23, 2009 7:53 am

Re: PGN Extract

Post by JManion » Sun Oct 23, 2011 1:47 am

Ok Jim I tried your cleanup program with out a pgn file in the folder. It still made all the blank pgns. Do I need to name my pgn file anything special so it knows the pgn file is in the folder?

LucenaTheLucid
Posts: 197
Joined: Mon Jul 13, 2009 12:16 am

Re: PGN Extract

Post by LucenaTheLucid » Sun Oct 23, 2011 2:49 am

I have experienced something similar as you as far as Jim's cleanup tool. Not sure what causes it but sometimes I have to redownload it several times before it works.

User avatar
Denis P. Mendoza
Posts: 415
Joined: Fri Dec 15, 2006 8:46 pm
Location: Philippines
Contact:

Re: PGN Extract

Post by Denis P. Mendoza » Sun Oct 23, 2011 4:42 am

Jim's cleanup tool runs fine in Windows 64-bit whether WinXP or Win7. I also have experienced occasional problems like yours which i could not explain at the moment. But most of the time, it processes pgn like the previous versions. Better try using the bat file in DOS mode. Drop to DOS in your cleanup folder and run the bat file there. It should work fine.

User avatar
Denis P. Mendoza
Posts: 415
Joined: Fri Dec 15, 2006 8:46 pm
Location: Philippines
Contact:

Re: PGN Extract

Post by Denis P. Mendoza » Sun Oct 23, 2011 5:03 am

Pgn-extract-interface works fine in 64-bit. Maybe, you need some (2010) runtime files as it was built with Microsoft Visual C# 2010 Express.

JManion
Posts: 195
Joined: Wed Dec 23, 2009 7:53 am

Re: PGN Extract

Post by JManion » Sun Oct 23, 2011 11:48 pm

I would try in DOS but I have no idea how to do that.

Ferdy
Posts: 4591
Joined: Sun Aug 10, 2008 1:15 pm
Location: Philippines

Re: PGN Extract

Post by Ferdy » Mon Oct 24, 2011 1:03 am

JManion wrote:I would try in DOS but I have no idea how to do that.
If you want to remove duplicates using the pgn-extract.exe file use the following command line in dos.

use the -d option to separate duplicates,
use the -o option to output unique games.
pgn-extract -dDuplicateGames.pgn -oUniqueGames.pgn orig_file.pgn
1. create directory pgn-extract in c drive
2. copy pgn-extract.exe in dir just created, that is c:\pgn-extract
3. copy your pgn file to be processed in dir just created
4. open your dos command promt
5. type
cd c:\pgn-extract

3. type
pgn-extract -dDuplicateGames.pgn -oUniqueGames.pgn orig_file.pgn

* orig_file.pgn is your pgn file to be processed.
* always create a back up of your orig file.

To create a batch file
1. open notepad
2. write
pgn-extract -dDuplicateGames.pgn -oUniqueGames.pgn orig_file.pgn

3. save it in the location of pgn-extract directory
4. In the notepad select file then click save
5. In the save as dialog box, select all, in the save as type:
6. under file name: type
myPgnProcessor.bat
7. Then click save

* your batch file now will be the file myPgnProcessor.bat and should be found in c:\pgn-extract
* To use the batch file created, just double click it under windows explorer. The command "pgn-extract -dDuplicateGames.pgn -oUniqueGames.pgn orig_file.pgn" will be executed.
* The -d and -o options are what "pgn-extract interface" was using, it was unfortunate that you were not able to open the said interface.

JManion
Posts: 195
Joined: Wed Dec 23, 2009 7:53 am

Re: PGN Extract

Post by JManion » Mon Oct 24, 2011 1:17 am

Hey thank you I will give it a try.

Just one quick questions. Lets say I have 2 duplicate games. They are the same just one file has the names of the players, while the other one is blank. How does it know to erase the one without names?

Ferdy
Posts: 4591
Joined: Sun Aug 10, 2008 1:15 pm
Location: Philippines

Re: PGN Extract

Post by Ferdy » Mon Oct 24, 2011 1:25 am

JManion wrote:Hey thank you I will give it a try.

Just one quick questions. Lets say I have 2 duplicate games. They are the same just one file has the names of the players, while the other one is blank. How does it know to erase the one without names?
I don't know how the pgn-extract.exe determined it, I did not check the source code.

I tried a sample like that and pgn-extract removes the game without names.

Post Reply