# Convert-file

**Main command:** rexdeskconvert help convert-file

**General convert format:** *convert-file -I \<input file> -O \<output file>*

<table data-header-hidden><thead><tr><th width="194.33333333333331"></th><th width="123"></th><th></th></tr></thead><tbody><tr><td><strong>Command Options</strong></td><td><strong>Purpose</strong></td><td><strong>Description</strong></td></tr><tr><td>-I &#x3C;input file>         </td><td><p>Specify input file path.</p><p> </p></td><td><p>Supported formats are XML (for configuration) and RXD (for data file conversion)</p><p> </p></td></tr><tr><td>-O &#x3C;output file>        </td><td><p>Specify output target file path.</p><p> </p></td><td><p>If input file is configuration (.xml), output file format should be .rxc. If input file is data file (.rxd), supported output formats are:</p><p>·        ASAM MDF4 file (*.mf4)</p><p>·        ASCII Logging File (*.asc)</p><p>·        Vector binary frames (*.blf)</p><p>·        Matlab 5.0 (*.mat)</p><p>·        Comma delimited (*.csv)</p></td></tr><tr><td><p>-F &#x3C;format>      </p><p>(Optional)     </p></td><td>Specify desired internal file format.</td><td><p>Applicable for CSV file type. Supported formats are:</p><p><strong>DiaLOG -</strong> file format structured for DiaLOG import (default).</p><p><strong>InfluxDB -</strong> file format structured for InfluxDB import.</p><p> </p></td></tr><tr><td><p>-S &#x3C;bus> &#x3C;signal file>  </p><p>(Optional)</p></td><td>Attach signals to specific can bus.</td><td><p>It can be used multiple times for each bus.</p><p>·        Parameter &#x3C;bus> should be the name of the bus - can0, can1...</p><p>·        Parameter &#x3C;signal file> should be the signal file path. Supported file formats are DBC only.</p><p> </p></td></tr></tbody></table>

### Example:

*To convert an RXD file to asc, use the below script:*

#### @echo off

CD C:\Program Files (x86)\Influx Technology\ReXdeskConvert\\&\&rexdeskconvert convert-file -I “C:\Users\user\Desktop\Input\New Project\_ReXgen0000049\_20210702\_113743.rxd” -O “C:\Users\user\Desktop\Output\Converted.asc”

*To convert an RXD file to CSV after linking a DBC file, use the below script:*

#### @echo off

CD C:\Program Files (x86)\Influx Technology\ReXdeskConvert\\&\&rexdeskconvert convert-file -I “C:\Users\user\Desktop\Input\IMU\_out\_0000007\_20211116\_185402.rxd” -O “C:\Users\user\Desktop\Ouput\Converted.csv” -s can0 “C:\Users\user\Desktop\ReXgen\_IMU\_Out\_V2.dbc”

*To convert an XML configuration file to rxc, use the below script:*

#### @echo off

CD C:\Program Files (x86)\Influx Technology\ReXdeskConvert\\&\&rexdeskconvert convert-file -I “C:\Users\user\Desktop\Input\New Project\_ReXgen0000049\_20210702\_113743.xml” -O “C:\Users\user\Desktop\Output\Config.rxc”
