Empower yourself with Converesion tools from Softinterface.

WordConverterExe Word Command Line Examples

(Command Line or GUI Driven file conversion)

Below are portions of a sample batch file, WCE_EXCEL_EXAMPLES.BAT, which is included in the installation directory.  You can include or exclude spaces between switches and parameters.  For example, "/C6" is the same as "/C  6".  For long file names you may be required to use double quotes.  For example /S"C:\Program Files\MyApp\MyDoc.DOC".

:========================================================================
: WordConverterEXE EXCEL Example Batch File. (WWW.SoftInterface.COM)
:
: Find the example closest to your needs and modify accordingly.
: Single Excel file processing
: EXAMPLE 1 (Simple single file conversion)
: EXAMPLE 2 (Sheet specification)
: EXAMPLE 3 (Concatenation of sheets exported)
:
: Multi-Excel file processing
: EXAMPLE A (Multi - Excel sheet conversion)
: EXAMPLE B (Row extraction and empty CSV line removal)
: EXAMPLE C (Concatenation)
: EXAMPLE D (Multi-File w/Sheet specification)
: EXAMPLE E (Example X w/sub-directories)
:
:========================================================================

----------------------------------------------------------------------
: EXAMPLE 1 (Single Excel file conversion)
:
: Convert "D:\A\B.XLS" to a Comma Delimited File "D:\A\B.CSV": /S D:\A\B.XLS /T D:\A\B.CSV /E /C6
: Create Log file D:\A\Convert.LOG: /L D:\A\convert.log
:
: NOTE: Since no sheet is specifed, sheet 1 is converted by default
: NOTE: For long file paths use double quotes.
:----------------------------------------------------------------------

WCX.EXE /S D:\A\B.XLS /T D:\A\B.csv /E /C6 /L D:\A\convert.log

:----------------------------------------------------------------------
: EXAMPLE 2 (Single Excel file conversion, Sheet specification)
:
: Do everything done in EXAMPLE 1 Plus:
: Specify Sheets (1,3-4) to save: /N 1,3-4
:
: NOTE use "*" to specify ALL sheets
:----------------------------------------------------------------------

WCX.exe  /S D:\A\B.XLS /T D:\A\B.csv /E /C6 /L D:\A\convert.log /N 1,3-4

:----------------------------------------------------------------------
: EXAMPLE 3 (Single Excel file conversion, Concatenation of sheets exported)
:
: Do everything done in EXAMPLE 2 Plus:
: Concatenate all the sheets into one file, "D:\A\Target.CSV": /F D:\A\Target.CSV /P1
: NOTE: Concatenation switch should be last
:----------------------------------------------------------------------

WCX.exe  /S D:\A\B.XLS /T D:\A\B.csv /E /C6 /L D:\A\convert.log /N 1,3-4 /F D:\A\Target.CSV /P1


:----------------------------------------------------------------------
: EXAMPLE A (Multi - Excel sheet conversion)
:
: Convert all Excel files in "D:\A\" to Comma Delimited Files at "D:\A\": /S D:\A\*.XLS /T D:\A\*.csv /E /C6
: Create Log file D:\A\Convert.LOG: /L D:\A\convert.log
:----------------------------------------------------------------------

WCX.exe /S D:\A\*.XLS /T D:\A\*.csv /E /C6 /L D:\A\convert.log

:----------------------------------------------------------------------
: EXAMPLE B (Example A w/row extraction and empty CSV line removal)
:
: Everything done in EXAMPLE A plus
: Convert all Excel files in "D:\A\" to Comma Delimited Files at "D:\A\": /S D:\A\*.XLS /T D:\A\*.csv /E /C6
: Extract only rows 1,3-6: /W 1,3-6
: Remove all empty CSV Rows: /P6
: Create Log file D:\A\Convert.LOG: /L D:\A\convert.log
:
: NOTE: Columns can also be specified via the /K switch
:----------------------------------------------------------------------

WCX.exe /S D:\A\*.XLS /T D:\A\*.csv /E /C6 /W 1,3-6 /P6 /L D:\A\convert.log

:----------------------------------------------------------------------
: EXAMPLE C (Example B w/concatenation)
:
: Do everything done in EXAMPLE B Plus:
: Concatenate All files, skipping first line of each file, to D:\A\Target.CSV: /F D:\A\Target.CSV /P12
:
: NOTE: Concatenation switch should be last
:----------------------------------------------------------------------

WCX.exe /S D:\A\*.XLS /T D:\A\*.csv /E /C6 /W 1,3-6 /P6 /L D:\A\convert.log /F D:\A\Target.CSV /P12

:----------------------------------------------------------------------
: EXAMPLE D (Example C w/sheet specification)
:
: Do everything done in EXAMPLE C Plus:
: Specify Sheets (1,3-4) to save: /N 1,3-4
:----------------------------------------------------------------------
WCX.exe /S D:\A\*.XLS /T D:\A\*.csv /E /C6 /W 1,3-6 /P6 /L D:\A\convert.log /N 1,3-4 /F D:\A\Target.CSV /P12

:----------------------------------------------------------------------
: EXAMPLE E (Example X w/sub-directories)
:
: Do everything done in EXAMPLE C Plus:
: Specify Subdirectories: /R
:----------------------------------------------------------------------
WCX.exe /S D:\A\*.XLS /T D:\A\*.csv /R /E /C6 /W 1,3-6 /P6 /L D:\A\convert.log /N 1,3-4 /F D:\A\Target.CSV /P12
 

 Download Now 

Buy Now