Performing a Silent Conversion

The CLI silent conversion allows you to run your conversion without the need to open the user interface. This is particularly handy when you need to convert folders with volumes of documents within.

A silent conversion should always be run from a .bat file. The reason being, if the command is called from a batch, a process is created for each file and Windows waits for it to end; if it's called directly, all the processes are concurrent.

If your command script has any occurrences of  %g,  you will need to replace it with %%g before running your .bat file.

  1. Create your command line script in a text document and save it to your computer as a .txt file (example, "convert.txt").
  2. Make sure your folders are set up to view the file extensions
  3. Rename that file as a .bat file (example, "convert.bat"). 
  4. Double-click on the .bat file to run the conversion.

The cmd prompt should return with "echo 0". 

If there is a different code here, something went wrong.  See a list of error codes here.


Here is a sample of a very basic silent conversion script and the one used in the video above:

"C:\Program Files (x86)\CogniView\PDF2XL CLI\PDF2XL.exe" -input="C:\Users\colle_000\Desktop\cliconvert\convert.pdf" -layout="C:\Users\colle_000\Desktop\cliconvert\convert.layoutx" -format=excelfile -range="all" -output="C:\Users\colle_000\Desktop\cliconvert\convert.xls" -noui 
echo %ERRORLEVEL%
pause

Of course, you would need to modify the paths in this script so they are relative to your document and folders.

This can also be run directly from the Command Line.

To see the available CLI commands,  click here.

Still need help? Contact Us Contact Us