

  {extends file="main.tpl"}
    <!DOCTYPE head PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><head xmlns="http://www.w3.org/1999/xhtml">
  {block name=title}GPSBabel development:Batch mode (command files){/block}
  {block name=body}
                       
  <div xmlns="http://www.w3.org/1999/xhtml" class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Batch mode (command files)</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="tracking.html">Prev</a> </td><th width="60%" align="center">Chapter 2. Usage</th><td width="20%" align="right"> <a accesskey="n" href="all_options.html">Next</a></td></tr></table><hr /></div><div xmlns="http://www.w3.org/1999/xhtml" class="sect1"><div class="titlepage"><div><div><h2 class="title" ><a id="batchfile"></a>Batch mode (command files)</h2></div></div></div><p>
	In addition to reading arguments from the command line, GPSBabel can
	read directions from batch (or command) files via the <code class="option">-b</code> option.
  </p><p>
    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 <code class="option">-b</code> option within a batch file is supported.
  </p><p>
  Here is an example demonstrating segmenting a large command line
  by placing the input and filtering directives in a file called 'all_my_files'.
  </p><p><strong class="userinput"><code>gpsbabel -b all_my_files -o gdb -F all_my_tracks.gdb</code></strong></p><p>
    'all_my_files' could look like this:
  </p><table border="0" summary="Simple list" class="simplelist"><tr><td>-i gpx</td></tr><tr><td>-f saxony_in_summer_2004.gpx -f austria_2005.gpx</td></tr><tr><td>-i gdb</td></tr><tr><td>-f croatia_2006.gdb</td></tr><tr><td>-x nuketypes,waypoints,routes</td></tr><tr><td>-x track,pack,split,title="LOG # %Y%m%d"</td></tr></table></div><div xmlns="http://www.w3.org/1999/xhtml" class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="tracking.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="Usage.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="all_options.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Realtime tracking </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> List of Options</td></tr></table></div>
  
      {/block}
  