In addition to reading arguments from the command line, GPSBabel can
read directions from batch (or command) files via the
These files are ideal for holding long command lines, long file lists, complex filters
and so on. You can use all GPSBabel options and combinations when writing
such files. Nesting batch files by using the
option within a batch file is supported.
Here is an example demonstrating segmenting a large command line by placing the input and filtering directives in a file called 'all_my_files'.
gpsbabel -b all_my_files -o gdb -F all_my_tracks.gdb
'all_my_files' could look like this:
|-f saxony_in_summer_2004.gpx -f austria_2005.gpx|
|-x track,pack,split,title="LOG # %Y%m%d"|