Following command line parameters are available:

/sendto .. .. ..       - can be used as one parameter to start the program and add all files/folder specified as next parameters               
/input                 - input file name (supports wildcards * ?)
/recurse               - recurse sub-folders
/output                - output path. You can specify output file prefix, e.g. /output "c:\somepath\prefix*" - in this case output file name will be prefixed with string "prefix".
/dest                  - destination format (one of M4A, ALAC, APE, FLAC, MP3, NeroAAC, OGG, RAW, WAV, WMA, WavPack, MPC, MP2, Speex, OFR, Merge, AC3, Shorten, Copy)
/createfullpath        - same as check box, false by default
/userg                 - apply Replay Gain 
/rgvalue n             - Replay Gain value (by default it's 89 dB)
/dest                  - destination format, one from mp3,wma,ogg,ape,flac,wavpack,wav
/mono                  - output will be converted to mono
/timestart             - offset of the 
/timelength            - 
/dispconfig            - will display configuration window for given destination format
/dispoptions           - will display program options
/dispadd               - will display configuration window for additional output File Name options
/disppproproc          - will display configuration window for preprocessing options
/about                 - will display about window
/showmainwindow        - show main window (won't show by default)
/dontshowaddingfiles   - don't show "Adding Files" window (will show by default)
/dontshowprogress      - don't show progress window (will show by default)
/filenamepattern       - set file name pattern (will be used for all cases, default is %filename%)
/p n                   - specify number of parallel files.
/noclose               - don't close program after process has completed (program will be closed anyway, if /showmainwindow is not specified)
/savesettings          - save settings
/showparams            - shows all possible parameters for given output format (program will exit after this)
                         it will show default value so you can guess the type of parameter (number, float or boolean (true/false))
/of .. .. .. ..        - output format specific parameters (you can get full list with /showparams)
                         !! note - this cannot be the first parameter, as all parameters 
                         !! after it will be treated as output format specific ones
/noshowerr             - don't show error message
/nometa                - don't write Metadata to output file

To get all possible output parameters for mp3 setting do the follwing:

1) run xrecode2.exe with parameter /showparams

   xrecode2.exe /dest mp3 /showparams

2) copy all settings to clipboard by pressing "Copy to clipboard" button and pick ones you need

3) run xrecode2.exe with needed parameters. you don't need to specify value for boolean parameter, i.e. just specify it's name


Examples:

- Convert flac files to mp3 using default values

xrecode2.exe /input c:\audio\flac\*.* /output c:\converted\output /dest mp3 

- Convert flac files to mp3. Use preset quality with value 4, which stands for V3 (as 0 is V0)

xrecode2.exe /input c:\audio\flac\*.* /output c:\converted\output /dest mp3 /of /UsePreset /Preset 4

- Convert flac files to mp3. Use VBR method with bitrate min=1, max=14 which stand for min bitrate=32, max bitrate=320

xrecode2.exe /input c:\audio\flac\*.* /output c:\converted\output /dest mp3 /of /vbr /VBRMin 1 /VBRMax 14

- Convert flac files to mp3. Use CBR method with bitrate=128

xrecode2.exe /input c:\audio\flac\*.* /output c:\converted\output /dest mp3 /of /cbr 128

- Convert flac files to mp3. Use CBR method with bitrate=128, apply replaygain

xrecode2.exe /input c:\audio\flac\*.* /output c:\converted\output /dest mp3 /userg /rgvalue 91 /of /cbr 128

- Reconvert mp3 files with Replaygain

xrecode2.exe /input c:\rg\*.mp3 /output c:\converted\output /dest mp3 /userg /rgvalue 89 /of /UsePreset /Preset 3

- Convert flac to ogg. Use VBR with bitrate=128

xrecode2.exe /input C:\cmdline\Bheki-16bit.flac  /output c:\converted /dest ogg /of /VBR 128

- Convert flac to ogg. Use Quality 3

xrecode2.exe /input C:\cmdline\Bheki-16bit.flac  /output c:\converted /dest ogg /of /Quality 3

- Convert wav files to flac. Use preset compression option

xrecode2.exe /input c:\audio\wav\*.wav /output c:\converted\output /dest flac /of UseCompression /Compression 4

- Convert wav files to ape. Use preset compression level 3

xrecode2.exe /input c:\audio\wav\*.* /output c:\converted\output /dest ape /UseCompression /Compression 3

- Convert flac files to mp3. First show config options for mp3, then start to process

xrecode2.exe /input c:\audio\flac\*.* /output c:\converted\output /dest mp3 /dispconfig  

- Show About (program will exit after showing About window)

xrecode2.exe /about

- Convert wav files to mp3 using only piece of track

xrecode2.exe /input "C:\converted\output\16bit.wav" /output c:\converted\output /dest mp3 /timestart 21000 /timelength 10000 /of /vbr /VBRMin 1 /VBRMax 14 

- Convert flac files to m4a using default settings

xrecode2.exe /input "C:\test\Bheki-16bit.flac" /output "c:\tmp\to\[ipod]" /dest m4a 

- Convert flac files to m4a using custom settings. Please note, that you must leave "- {OutputFileName}" at the end of the custom CommandLine parameter.

xrecode2.exe /input "C:\test\Bheki-16bit.flac" /output "c:\tmp\to\[ipod]" /dest m4a /of CommandLine "--tvbr 35 --highest - {OutputFileName}"

- Convert flac files to m4a using custom settings. Please note, that you must leave "- {OutputFileName}" at the end of the custom CommandLine parameter.

xrecode2.exe /input "C:\test\Bheki-16bit.flac" /output "c:\tmp\to\[ipod]" /dest m4a /of CommandLine "--tvbr 100 - {OutputFileName}"

- Convert flac files to m4a using output file prefix

xrecode2.exe /input "C:\test\Bheki-16bit.flac" /output "c:\tmp\to\[ipod]*" /dest m4a 

- Convert wav files to NeroAAC. Use quality 0.55 (you need to specify 55 instead of 0.55)

xrecode2.exe /input c:\audio\*.wav /output c:\converted\output /dest NeroAAC /UseQuality /of /Quality 55

- Convert wav files to NeroAAC. Use quality 1 (you need to specify 100 instead of 1)

xrecode2.exe /input c:\audio\*.wav /output c:\converted\output /dest NeroAAC /UseQuality /of /Quality 100
