DX4WIN

Update Files

 
Home
Awards
DX Cluster Database
Update Files

DX4WIN Data File Update Script


This is a script for updating some of the DX4WIN data files. The script will update:

DX4WIN.AWD - award database
DX4WIN.CTY - country file
DX4WIN.MAS1 - master callsigns
DX4WIN.MAS2 - eQSL/LoTW membership list
DX4WIN.TCP - Internet addresses
ADIF.PMP - ADIF mapping file
fullllist.xml - IOTA islands

It does NOT update the DX4WIN program itself!

To use the script, you must download and install the Wget ("Windows get") program. "GNU Wget is a free network utility to retrieve files from the World Wide Web using HTTP and FTP, the two most widely used Internet protocols." You can get the installation program for Wget here:

Wget for Windows

Find the Download section, and download the file from the Setup link ("Complete package, except sources") - the name will be something like "wget-1.11.4-1-setup.exe". After downloading the setup file, run it to install the program, making sure to install it in the default (suggested) directory of C:\Program Files\GnuWin32

NOTE: if you already have a version of Wget installed (i.e. Cygwin, etc.), then you may not need to download and install the version above. Just make sure it's in your path and the update script will find/use it.

Next, download the update update script by right-clicking on the link and use "Save Target As..." or "Save Link As..." to save it in your DX4W### directory (where DX4WIN.EXE can be found; not your DX4WIN SAVE directory, nor any other place on your system).

Finally, create a shortcut to the script. Using Windows explorer, navigate to your DX4W### directory and locate "update.bat". Right-click on the icon and select "Send To" and choose "Desktop (create shortcut)". You can rename the desktop shortcut if you desire.

To update your data files, first exit DX4WIN completely. Then simply double-click the desktop shortcut, or navigate to your DX4W### program folder and double-click on update.bat. Here is an example screen shot showing what the script does when it runs (note that the output from other versions of the script may not be exactly the same as shown below):

DX4WIN update script

Before updating, the old files are moved to the DX4W###\BACKUP directory. If a file was previously backed up, it will be renamed, i.e. DX4WIN.TCP becomes DX4WIN.~CP.

All files are updated each time. When the update is complete, simply press any key to continue. You can then re-start DX4WIN.

If you find you need to go back to the previous version of a file, shut down DX4WIN and move that file from the BACKUP directory to the SAVE directory.

If there are certain files you don't want to update, comment them out by putting REM statements at the start of the appropriate line(s) in the script.


Notes

  • You may see some messages about missing files the first couple of times you run the program. These messages will go away once the BACKUP directory has two backups of each file that was replaced.
     
  • Every time you save your log, DX4WIN also saves the .CTY file. So even though you may have never modified this file yourself, it may be "newer" then the one on the web site.
     
  • Every time you choose a new "top node" in the Internet address list, the .TCP file gets updated. So once again, the date of your file may indeed be newer than the date of the file on the web site, even though the data is the same.
     
  • The script doesn't do any merging. You have the option of merging the new country file from your old one, which was moved to the BACKUP directory.
     
  • If you edited the awards or Internet address databases, you'll have to copy those changes to the new file, you can find the previous one in the BACKUP directory.

Revision History

Ver 1.7 - 10 February 2010
Another attempt to fix PATH problem
 
Ver 1.6 - 9 February 2010
Fixed PATH problem
 
Ver 1.5 - 9 February 2010
Added better support for Windows Vista and 7
 
Ver 1.4 - 4 January 2010
Update ADIF.PMP
 
Ver 1.3 - 16 December 2009
Move (don't copy) old DX4WIN.AWD
Move (don't copy) old DX4WIN.MAS1
Download .MAS or .MAS1 depending on DX4WIN version (user edits file)
Added download for DX4WIN.MAS2 (member list)
Move old fulllist.xml when downloading new one
 
Ver 1.2 - 10 August 2009
Installs in the DX4W### directory (not SAVE directory)
Downloads DX4WIN.MAS1 and fulllist.xml
By modifying script, user can download "keep alive" version of DX4WIN.TCP
Creates backups of backups (dx4win.~ty, dx4win.~wd, etc.)
Shows the version number when run
 
Ver 1.1 - 10 August 2009
Initial Release
 

Firefox 3

Join the Blue Ribbon Online Free Speech Campaign!

Copyright © 2000-2010 by James J. Reisert All Rights Reserved
15200 Clinton Street, Brighton, CO 80602-5667
E-mail to