Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Macro name changed from html to html-bobswift during server to cloud migration processing.

...

Anchor
1053166
1053166
The basic format of the copy command is:

Panel

Html bobswift

<pre>
copy sourcelname=filespec [destlname[=filespec]]
</pre>

Anchor
1053171
1053171
The copy command copies the file specified on the server with the logical name corresponding to sourcelname to the server with the logical name corresponding to destlname.

...

Anchor
1053175
1053175
The following example copies the file test.txt from a machine with the logical name src to a file called test.txt on the machine with the logical name dst:

Panel

Html bobswift

<pre>
copy src=test.txt dst
</pre>


Anchor
1053178
1053178
The following example copies the test.txt file residing in c:\files from a machine with the logical name src to a file called test.txt on the machine with the logical name dst:

Panel

Html bobswift

<pre>
copy src=c:\files\test.txt dst
</pre>


Anchor
1053181
1053181
The following example copies test.txt from src to the root of drive C on dst. The destination file is also called test.txt:

Panel

Html bobswift

<pre>
copy src=test.txt dst=c:\
</pre>


Anchor
1053184
1053184
The following example copies the file test.txt from src to a file called test.bak in the root of drive C on dst:

Panel

Html bobswift

<pre>
copy src=test.txt dst=c:\test.bak
</pre>


Tip
titleA Stonebranch Tip

If you want the destination file name to be the same as that of the source file name, you do not have to specify the destination system in the copy command.

The destination will be implied based on the logical name of the source (if the source is the primary server, the destination is assumed to be the secondary server, and vice versa).