Function Entry: DOSCOPY
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: DOSCOPY
Name
`doscopy`
Class
BricsCAD DOSLib Function
Syntax
(dos_copy sourceFileSpec destFileSpec)
Arguments and Values
Arguments are described in the vendor page; see Source Notes.
Description
This function copies one or more source files to a target file resp. to a target folder; the source file specification may contain wildcard characters like "*" and "?". sourceFileSpec : (string) specifies an existing file (no wildcards used), or declares a file mask when using wildcards destFileSpec : (string) specifies the target file, if sourceFileSpec also specifies an existing file -OR- it specifies a folder to copy all source files to, if sourceFileSpec Returns T on success or NIL on any failure. Examples : T T T T (doscopy "J:\FileDoesNotExist.txt" "J:\Test\") NIL Note 1 : any existing target file will be overwritten ! Note 2 : missing target folder(s) will be automatically created Note 3 : when specifying a target folder, the string must end with "\" or "" character to clearly declare it to be a folder ! Note 4 : both "\" and "" path separators are allowed on all platforms (Windows, Linux, Mac; they will be adjusted automatically)
Return Values
Vendor-defined; see Source Notes.
Availability
- AutoCAD 2026: not documented.
- BricsCAD V26: documented.
- Status: BricsCAD-only.
Source Notes
- [doscopy (BricsCAD V26 DevRef)](https://developer.bricsys.com/bricscad/help/en_US/V26/DevRef/source/dos_copy.htm)
- Status: documented (Phase 3 follow-up: body filled from the BricsCAD V26 per-symbol page on 2026-04-26).