If you have trouble running these examples please see Using the Command Line and Helpful Hints For Creating a Command Line.
To convert a single file, say C:\In\TryMe.TXT to multiple C:\Out\TryMe.TIF files use the following syntax:
CDTI /S"C:\In\TryMe.TXT" /T"C:\Out\TryMe.TIF" /4 100 /V
Add the /8 1 switch to convert to a single TIFF.
CDTI /S"C:\In\TryMe.TXT" /T"C:\Out\TryMe.TIF" /4 100 /8 1 /V
NOTE: TXT files can be ASCII or Unicode, our tool will attempt to determine which if you don't specify, but it is always best to specify if you know. In this case, add the /F# switch. Use /F 1 for ASCII and /F 6 for Unicode.
Add the /F6 switch to specify that the text files are Unicode, otherwise, use /F1.
CDTI /S"C:\In\TryMe.TXT" /F6 /T"C:\Out\TryMe.TIF" /4 100 /8 1 /V
The /S and /T switches above specify input and output path respectively and are both required. It is always a good idea to use double quotes around the path especially if there are space characters within the path.
The /4 100 switch is to specify a JPEG quality of 100% (valid values are from 0-100). See a complete listing of other switches for additional formatting options.
The /F6 switch specify the type of input file, Unicode text. See the File Type Constants Specification for a full listing.
The /V (for Verbose) switch is used to give instant feedback by having the program report the status of the conversion with a message box. You can remove this once you have perfected your command line specification. You can also (or instead of /V) create a Log file that will contain the results of the conversion by using the /L switch.
Note: Use the Verbose (/V) switch initially to see what the status of your conversion is and to help you perfect your command line. In verbose mode, CDTI displays messages to indicate what went wrong or right with your command line.
To convert all the DOC files in the C:\In\ folder to JPG files in the C:\Out\ folder, the following syntax would be used.
CDTI /S"C:\In\*.TXT" /T"C:\Out\*.TIF" /V
To extend the previous example (immediately above) to convert all subfolders within add the /R switch.
CDTI /S"C:\In\*.TXT" /T"C:\Out\*.TIF" /R /V