[OSM-talk] Windows gpsbabel batch conversion
Ben Ward
ben at crouchingbadger.com
Mon Jan 22 00:25:08 GMT 2007
Just a quick one.
I use AFTrack on my Nokia 6630. I got fed up of converting all my .trk files
(PCX) to .GPX files, so I found a script here:
http://sci.tech-archive.net/Archive/sci.geo.satellite-nav/2004-08/2294.html
Use notepad and make a .cmd file containing this:
FOR %%X IN (*.trk) DO gpsbabel.exe -p "" -w -r -t -i pcx -o gpx %%X
%%~dpnX.gpx
where -i is your input format
-o is your output format
and the *.s are the extensions
Obviously this works for any batch job in windows. Also obviously, if you
use the gpsbabel GUI you can run a conversion, get the command line which
works for you, and put it in there. Also also, don't forget to remove
spaces in directory names.
Yes, I know I should be using operating system <insert name here>, but I
don't touch it outside of work so I thought this would come in useful for
people with Windows who don't have the command-line foo or the
time/inclination to do so. :-)
Ben
ps. Is this like admitting you're a fan of Take That at a rugby club?
--
ben at crouchingbadger.com | http://crouchingbadger.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20070122/9ec0261e/attachment.html>
More information about the talk
mailing list