Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > copyTo()

 

copyTo()

Syntax

file("fileName").copyTo("destinationFileName")

Description

Multiuser Server server-side function; copies the specified file to a new file with the name destinationFileName. This function returns a nonzero error code if it fails.

Example

This statement copies the file Longspeech.txt to the new file Shortspeech.txt:

file("C:\Longspeech.txt").copyTo(C:\Shortspeech.txt")

See also

exchange()