Skip to content

dos_copy

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

Copies a single file or multiple files. The function can be used to copy files from one directory to another, or from one drive to another.

Syntax

(dos_copy source destination)

Parameters

source

The source file or files. source can contain wildcard characters ("*" and "?").

destination

The destination path or file.

Returns

T if successful.

nil on error.

Example

Command: (dos_copy "C:\\Drawings\\test1.dwg" "C:\\Drawings\\test2.dwg")
T

Command: (dos_copy "C:\\Drawings\\test1.dwg" "C:\\Temp\\")
T

Command: (dos_copy "C:\\Drawings\\*.dwg" "C:\\Temp\\")
T

Clone this wiki locally