Copyfile; Deletefile; Editfile - Omron CX-Supervisor Reference Manual

Script language reference
Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

File Commands
6-9-2

CopyFile

6-9-3

DeleteFile

6-9-4

EditFile

80
Syntax
returnstate = CopyFile("sourcename", "destname")
Remarks
Argument
Type
returnstate
bool
sourcename
string
destname
string
Typical Example
CopyFile("c:\autoexec.bat", "c:\autoexec.old")
The file "c:\autoexec.bat" is copied to the file "c:\autoexec.old".
CopyFile("c:\logging\*.dlv", "a:\backup")
The data log files (ending in dlv) in "C:\logging" are copied to the "\backup"
directory on drive A:
Syntax
returnstate = DeleteFile("filename")
Remarks
Argument
Type
returnstate
bool
Filename
string
Typical Example
DeleteFile("c:\pagename.pag")
The file "c:\pagename.pag" is deleted.
Syntax
returnstate = EditFile("filename")
Remarks
Argument
Type
returnstate
bool
Filename
string
Typical Example
EditFile("C:\report3.txt")
FileExists
Syntax
returnpoint = FileExists (filename)
Remarks
SECTION 6 Functions and Methods
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
Pathname of file to be copied. May include a
"*" wildcard character.
Pathname of destination of copy. If path name
does not exist it is created.
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
Pathname of file to be deleted.
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
Pathname of file to be edited.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents