Description
Copies one or more operating system files to a native table.
Syntax
Copy_OS_To_Row (srcfilelist, desttablename, destkeylist, overwriteflag, convertflag, lockflag)
Parameters
The Copy_OS_To_Row routine has the following parameters.
Parameter | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
srcfilelist | Specifies an operating system file or list of files. The file name includes the operating system drive and path. | ||||||||
desttablename | Specifies the name of the destination table. | ||||||||
destkeylist | Specifies a list of destination keys. If destkeylist is null, srcfilelist is used. A one to one correspondence must exist between srcfilelist and destkeylist. | ||||||||
overwriteflag | Determines whether or not to overwrite existing rows in desttablename.
| ||||||||
convertflag | Determines whether or not to convert carriage return/linefeed characters to field marks. If null, the default is to perform the conversion (0). CTRL+Z is converted to null. When copying compiled scripts or other binary data, always suppress the conversion by setting the convertflag.
| ||||||||
lockflag | Determines whether or not to lock the DOS source files and destination rows during the copy operation.
|
See also
Example
The following example illustrates how to copy operating system files to OpenInsight tables from the command line:
run Copy_OS_To_Row "C:\AUTOEXEC.BAT", "SYSPROCS", "AUTOEXEC", 2