/P# |
Meaning |
Extra Parameters: /1{Parameter1} … /n{Nth Parameter} |
50 |
(DOC, RTF, HTM, TXT) Append / Concatenate Text Files |
NONE
Must specify /F# with the Special Process File Type Constants |
Additional Notes: You can append the content of a one or many files to the end of another file by using this special process. A copy of the ‘Input File’ (specified by /S{Input File} ) will be placed at the end of the output ‘Target File’ (specified by /T{Target File} ).
To append multiple files make sure the Input file uses the wildcard format (e.g. *.doc , *.htm, *.txt).
To concatenate the contents of Excel worksheets please see "/P 101 Copy Specified Data from sheet to same or different XLS file".
NOTE: The file type must be specified for this special process, which is done by the /F#. Both input and output file types must be the same when using this special process.
To append the contents of B.RTF to the end of the contents within A.RTF the following syntax would be used:
ConvertXLS.EXE /S"D:\Files\B.RTF" /T"D:\Files\A.RTF" /P50 /F5
To append the contents of all MS Word files within the D:\WordDocs\ folder into D:\Output\Target.DOC the following syntax would be used:
ConvertXLS.EXE /S"D:\WordDocs\*.DOC /T"D:\Output\Target.Doc" /P50 /F9
The /S and /T switches specify input and output workbook respectively, which in this case is the same workbook.
To do recursive subfolders, specify the /R switch.