B0500180, Operating System File Operations Delete, Rename, File Exists
Original SAR: 2666820
Perform operating system file operations to delete, rename and check for file existence
Data
Data StructureReqdItem I/OExplanation
----------------------- -------------------------------------
cAction xEV01 IAction:
D = Delete File1
R = Rename File1 to File2
E = check for the Existence of File1
szFile1 xEXEP I/OName of File1 (including path, e.g. c:/temp/xyz.abc)
On return, leading and trailing blanks will
be removed.
szFile2EXEP I/OName of File2 (required for Rename)
On return, leading and trailing blanks will
be removed.
cSetOneWorldErrorFlag01EV01 IA flag to set OneWorld errors
= 1 to set errors
anything else to not set errors
(currently not working, F. Thamir, 04
Dec,1998)
mnErrorCodeMATH06 OError code returned
0 = no errors, i.e., action successful
If cAction = 'E', then ErrorCode = 0
means the file does exist
1 = action not successful
2 = szFile1 not entered
3 = szFile2 not entered when cAction = 'R'
9 = cAction not recognised
^
D0500180 - Operating System File Operations
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
cActionCode | EV01 | char | REQ | INPUT |
An option that specifies the type of processing for an event. | ||||
szFileName1 | EXEP | char | REQ | BOTH |
Printer- conversion program executable with path. | ||||
szFileName2 | EXEP | char | OPT | BOTH |
Printer- conversion program executable with path. | ||||
cSetOneWorldErrorFlag01 | EV01 | char | OPT | INPUT |
An option that specifies the type of processing for an event. | ||||
mnErrorCodeReturned | MATH06 | MATH_NUMERIC | OPT | OUTPUT |
Event point for Math Numeric. |
None |
None |