Convert From Any File MS Excel Can Open

If MS Excel can open it, then we can easily convert it using the 'MS Excel' conversion method (/M1). Below we show how to convert a dBase IV (DBF) file to an Excel file. Because Excel can open this file type, we can convert it to any file type MS Excel can 'Save As'. Modify the example below to tailor your needs by changing /F and /C to correspond to the proper input and output file types. NOTE: Although shown for consistency, /F is really not required and can be omitted.

 

Example 1: Convert a dBase IV File To Excel

To convert a single file from dBase IV (DBF) to an Excel use the following syntax:

 

ConvertXLS.EXE /S"C:\in\input.dbf" /T "C:\out\Final.XLS" /C-4143 /F11 /M1 /V

Next we show how to convert a whole folder (and sub-folders /R) of text files (C:\abc\*.DBF) to XLS files located in the same folder. The following syntax would be used for such a case:

 

ConvertXLS.EXE /S"C:\abc\*.dbf" /T "C:\abc\*.XLS" /C-4143 /F11 /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.