COPY FILE

 

COPY FILE

Copies a file.

Syntax

      COPY FILE <cfile> TO <cfile1>

Arguments

<cFile> Filename of source file <cFile1> Filename of target file

Description

This command makes an exact copy of <cFile> and names it <cFile1>. Both files must have the file extension included; the drive and the directory names must also be specified if they are different from the default drive and/or director. <cFile1> also can refer to a OS device (e.g. LPT1). This command does not observe the SET PATH TO or SET DEFAULT TO settings.

Examples

      COPY FILE C:\harbour\tests\adirtest.prg TO C:\temp\adirtest.prg
      COPY FILE C:\harbour\utils\hbdoc\gennf.prg TO LPT1

Compliance

Clipper

Seealso

ERASE, RENAME, FRENAME(), FERASE()

Advertisements

2 responses to “COPY FILE

  1. Pingback: Harbour Commands | Viva Clipper !

  2. Pingback: Harbour RG Summary | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s