Skip to content

dos_unix2dos

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

Converts a Unix-type text file to a DOS-type text file. DOS and Unix systems use different methods to identify end-of-line information in text files. DOS, including all versions of Windows, use a carriage return/linefeed pair (CR/LF), while Unix only uses the LF character.

Syntax

(dos_unix2dos source destination)

Parameters

source

The source filename.

destination

The destination file name.

Returns

A qualified path to destination if successful.

nil on error.

Example

Command: (dos_unix2dos "readme.unix" "readme.dos")
"C:\\temp\\readme.dos"

Clone this wiki locally