Overview | Statement List


移动文件

Synopsis

FMOVE/'source filespec','destination directory'[{,UPDATE|,NEWEST}][{,VERIFY|,DELETE}][,IFERR,label:]

Description

Moves a file from one directory to another. A copy of the file being moved will be left in the source directory.

NOTE: The file name in the new directory will remain the same as in the old directory.

Parameters

Parameter

Description

'source filespec'

The filespec of the file to be moved. The filespec is the pathname plus the filename you want. If the file you need is in your current directory, the filename will be sufficient to find it. Moving a file from one directory to another, requires that the file extension (e.g. .PRT, or .GRS) be specified.

'destination directory'

The directory to which the file is being moved. The filespec will automatically be the same as the source filespec.

UPDATE

Minor word which indicates that the version existing in the destination directory is to be replaced by the new version.

NEWEST

Minor word which indicates that the specified file is to be moved only if its last modified date is more recent than that of the version in the destination directory.

VERIFY

Minor word that indicates that the version which is copied to the destination directory is to be checked against the original version for any errors which may have occurred during the move operation.

DELETE

Minor word that indicates that the version which is copied to the destination directory is to be checked against the original version for any errors which may have occurred during the move operation and then the source file is deleted.

IFERR,label:

Specifies a label to which program execution jumps if an error occurs.

 


Copyright ©2015 胡君NX二次开发官网(www.UGapi.com) QQ:85585969 All Rights Reserved.