Skip to content

dos_mergefiles

Dale Fugier edited this page Jul 1, 2026 · 1 revision

Merges, or combines, two or more files into a single file.

Syntax

(dos_mergefiles source [destination])

Parameters

source

A list of filenames to merge into a single file..

destination

The name of the destination file to create. if omitted, the source files will be merged into the file identified by the first element of the source list.

Returns

The name of the destination file if successful.

nil on error.

Example

Command: (setq z '("one.txt" "two.txt" "three.txt"))
("one.txt" "two.txt" "three.txt")

Command: (dos_mergefiles z)
"one.txt"

Command: (dos_mergefiles z "four.txt")
"four.txt"

Clone this wiki locally