# Convert-folder

**Main command:** help convert-folder

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

<table data-header-hidden><thead><tr><th width="187.33333333333331"></th><th width="167"></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><p>-I &#x3C;input folder>       </p><p> </p></td><td><p>Specify input folder path containing RXD files.</p><p> </p></td><td> </td></tr><tr><td><p>-O &#x3C;output folder>      </p><p> </p></td><td>Specify output target folder path.</td><td> </td></tr><tr><td>-C (optional)</td><td>Set concatenation mode.</td><td><p>When -C is used, all converted data will be stored in the same output file (concatenated).</p><p> </p></td></tr><tr><td>-F &#x3C;type> &#x3C;format>      </td><td>Specify desired output type and internal file format.</td><td><p>Supported target conversion file types and formats are:</p><p>Supported target conversion file types and formats are:</p><p>mf4 for ASAM MDF4 file (*.mf4)</p><p>·       asc for ASCII Logging File (*.asc)</p><p>·       blf for Vector binary frames (*.blf)</p><p>·       trc for Peak Can Trace File (*.trc)</p><p>·       .0cst for Comma separated trace (*.cst)</p><p>·       mat for Matlab 5.0 (*.mat)</p><p>·       parquet for Apache Parquet (*.parquet)</p><p>·       csv for Comma separated values (*.csv)</p><p>·       csv InfluxDB for CSV line protocol file (*.csv) required for InfluxDB import</p><p>·       csv Regional for unofficial CSV line protocol file (*.csv) using local regional settings for list separator and decimal separator</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><tr><td><p>-E &#x3C;encryption key></p><p>(Optional)    </p></td><td>Specify encryption key file.</td><td>Used for decrypting .rxe files.</td></tr><tr><td>-R &#x3C;rate> &#x3C;method></td><td>Specify the resampling rate and method</td><td><p>Define the resampling rate in milliseconds and the method to use to obtain values:</p><p>·         Near - to use the nearest sample by timestamp</p><p>·         Last - last sample, which means the previous</p></td></tr><tr><td>-T&#x3C;axis> &#x3C;begin>&#x3C;end></td><td>Specify the beginning and end parameters</td><td><p>Define the time axis sync initial sample timestamp source</p><p>·         First - first sample in file</p><p>·         Zero - zero seconds (0 sec)</p><p> </p><p>Begin and End parameters can describe what to do before the initial sample in each channel and after the last sample in each channel. Optional values can be:</p><p>·         nothing</p><p>·         duplicate</p></td></tr></tbody></table>

### Example:

*To convert all the RXD files in a folder to asc, use the below script:*

#### @echo off

CD C:\Program Files (x86)\Influx Technology\ReXdesk\\&\&rexdesk convert-folder -F asc -I “C:\Users\usern\Desktop\Input” -O “C:\Users\usern\Desktop\Output”

&#x20;*To merge and convert all the RXD files in a folder to CSV using the below script*

#### @echo off

CD C:\Program Files (x86)\Influx Technology\ReXdesk\\&\&rexdesk convert-folder -C -F csv -I “C:\Users\user\Desktop\Input” -O “C:\Users\user\Desktop\Output”

*To merge and convert all the RXD files in a folder to CSV after linking the DBC file, use the below script*

#### @echo off

CD C:\Program Files (x86)\Influx Technology\ReXdesk\\&\&rexdesk convert-folder -C -F asc -I “C:\Users\user\Desktop\Input” -O “C:\Users\user\Desktop\Output” -s can0 “C:\Users\user\Desktop\ReXgen\_IMU\_Out\_V2.dbc”
