Small company logo:
   History
 
Advertising banner:
 
 ServerFile.Copy
Home • Help • Customization Tools • FCAS • Language Reference • ServerFile.Copy
 
Purpose
Copies an object on the FirstClass server without transferring the contents through your application.
The same rules apply whether you copy an object using the client or this keyword.
If ServerFile.RunTimeErrors = TRUE, an error will be thrown on failures. All failures will set ServerFile.Error to the FirstClass error code for the failure case.
Syntax
ServerFile.Copy (Path | FileName, Destination)


Path
Where you want to copy the object.
FileName
The name of the file in the current container that you want to copy.
Destination
A server file variable already opened to the location where you want to copy the file.
This allows access even though all paths on the server aren't accessible from the same root node. For example, it permits copying from one user's Desktop to another's.

Example
Dim sf as ServerFile
sf.OpenFile ("Conferences | AConf | Test")
sf.Copy ("Conferences | TestConf")