Colonial Campaigns Club (CCC)
https://wargame.ch/board/cc/

Purging Replay Files
https://wargame.ch/board/cc/viewtopic.php?f=6&t=4136
Page 1 of 1

Author:  838 [ Fri Feb 20, 2004 10:38 pm ]
Post subject:  Purging Replay Files

Every so often all of the PBEMAIL and CAMPAIGN replay files in our games need to be purged. If you are wondering what files I mean here is what they are named:

pbemail.xxx
pbemail.yyy
campaign.xxx
campaign.yyy

The last two files (campaign.xxx and campaign.yyy) are only found in the HPS games. The pbemail files are in both the BG and HPS games.

I have put together a batch file that goes through my hard drive and deletes the files. It finds all .yyy and .xxx files on my local hard drives and deletes them.

Its easy to create and use. I have never seen these extensions used in other programs. Thus my caveat is to do a search for all .yyy and .xxx files on your drive first and make sure that such is the case. If you find that Microsoft uses such an extension (highly unlikely) then you will have to be careful in the use of the file. If on the other hand you dont find the file extension in use anywhere else please give my batch file a whirl. (but see below for a more definitive version)

Here is the basic batch file text:

cd c:\
del /s *.yyy
del /s *.xxx

I will go through each line for you:
cd c:\ will change the directory path to the root directory on your hard drive which is usually C.

del /s *.yyy means to delete all files that have a file extension of .yyy in all subdirectories downward from the point you are at (which is the root directory)

del /s *.xxx is the same as above only all .xxx files are deleted.

Now if you are like me and you have several drives here is how the batch file would look:
cd c:\
del /s *.yyy
del /s *.xxx
j:
del /s *.yyy
del /s *.xxx

Note that I jump to a "J" drive letter in line 4. Then I repeat the instructions. And you can add in more lines for each drive if you have more than two logical drives.

Making the file:
1. Copy the text that applies to your situation. If you only have one drive letter where you park all of your games then use just the first sample. If more than use the second and change the drive letter from "J" to whatever it is for your drive.

2. Create a new .txt (Notepad) file. Name it as you like. I called mine pbem_del.txt.

3. Open the file and paste in the text you copied in step #1.

4. Save the file.

5. Change from the extension from .txt to .bat so that the file is now executable.

6. Try it out by double clicking on the file.

PLEASE NOTE! Never use *.* in place of *.xxx or *.yyy as you will delete all files in your directories!

This is not a dangerous mission you are on. If you copy my text and you have checked your drive (using the Search feature) for all .xxx and .yyy extensions and found them only to be in the John Tiller games then you are ready to proceed.

I just tried out the batch file and it worked just fine. My pC seemS to woRk jUst FiNe!!!

Addendum:

If you find that your drive DOES have other files with the .xxx or .yyy file extension then use this text in your batch files:

cd c:\
del /s pbemail.yyy
del /s pbemail.xxx
del /s campaign.yyy
del /s campaign.xxx

And add in this text if you have other drive letters:

j:
del /s pbemail.yyy
del /s pbemail.xxx
del /s campaign.yyy
del /s campaign.xxx

Again, substitute the "J" for whatever your drive letter is called. If you have a third logical drive that has the games installed on it then make up a third set of text just like you see starting with J:. Remember to change the drive letter to whatever you have on your PC.

Example:
Joe has three drives where HPS and Talonsoft games are installed. They are C: E: and K: thus he will use a batch file with the following text:

cd c:\
del /s pbemail.yyy
del /s pbemail.xxx
del /s campaign.yyy
del /s campaign.xxx

e:
del /s pbemail.yyy
del /s pbemail.xxx
del /s campaign.yyy
del /s campaign.xxx

k:
del /s pbemail.yyy
del /s pbemail.xxx
del /s campaign.yyy
del /s campaign.xxx

I hope this helps us avoid having to redo files. I plan on running this file once a month. It should avoid any issues I have with my files that get sent to my opponent. If my opponents are not running some kind of batch file like this or not deleting the file then I might get a file from them that has replay problems.

The replay files on the PC doing the turn are the ones that cause the problem. Not the receiving player. Thus if you get through a replay ok then your opponent doesnt have the problem. If he gets a file from you that he cant see the replay from then you need to rid yourself of the replay files that you have.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/