OpSysFileOperations

Operating System File Operations Delete, Rename, File Exists

Minor Business Rule

Object Name: B0500180

Parent DLL: CFND

Location: Client/Server

Language: C

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


^

Data Structure

D0500180 - Operating System File Operations

Parameter NameData ItemData TypeReq/OptI/O/Both
cActionCodeEV01charREQINPUT

An option that specifies the type of processing for an event.

szFileName1EXEPcharREQBOTH

Printer- conversion program executable with path.

szFileName2EXEPcharOPTBOTH

Printer- conversion program executable with path.

cSetOneWorldErrorFlag01EV01charOPTINPUT

An option that specifies the type of processing for an event.

mnErrorCodeReturnedMATH06MATH_NUMERICOPTOUTPUT

Event point for Math Numeric.

Related Functions

None

Related Tables

None