Convert Excel To Any File MS Excel Can Save As

If you have trouble running these examples see Using the Command Line and Helpful Hints For Creating a Command Line.

These examples use the 'MS Excel' conversion method (/M1) to convert a XLS file to any file MS Excel can 'Save As'. Simply change the /C switch in the examples below to the desired target (output) file format. See Excel Conversion File Type Constants for all possible file types and corresponding values for /C.

You can easily change the examples below to handle XLSX files by changing all instances of "XLS" to "XLSX" and changing all instances of "/F-4143" to "/F51".

The first example shows how to convert an Excel file to a dBase IV file.

Each switch shown in blue is described in detail below the examples. It is highly recommended you review each switches description before implementing the example, thereby giving you the full power of 'Convert XLS'.

Example 1 (Comma Delimited CSV File to 'dBase IV')

To convert a single XLS file, "C:\in\input.XLS" to a dBase IV file located in the "C:\Out\" folder, the following syntax would be used:

 

ConvertXLS.EXE /S"C:\in\input.XLS" /T "C:\Out\output.DBF" /C11 /F-4143 /M1 /V

To convert a whole folder (and sub-folders) of files, C:\in\*.XLS to dBase IV files located in the C:\in\ folder, the following syntax would be used:

 

ConvertXLS.EXE /S"C:\in\*.XLS" /T "C:\in\*.DBF" /C11 /F-4143 /M1 /R /V

 

The /G switch can be used to tell 'Convert XLS' to place each output file in the same folder as each input file. Therefore the command line above is equivalent to the command line below:

 

ConvertXLS.EXE /S"C:\in\*.XLS" /G /C11 /F-4143 /M1 /R /V

 

You may want to convert a whole folder and its sub-folders and place the output into a separate folder/drive. In which case use this syntax:

 

ConvertXLS.EXE /S"C:\in\*.XLS" /T "C:\Out\*.DBF" /C11 /F-4143 /M1 /R /V

 

Note: It is highly encouraged that you use the Verbose (/V) switch initially to see what the status of your conversion is and to help you perfect your command line. When in verbose mode the program will tell you what went wrong or right with your command line using message boxes.