Consultor Eletrônico



Kbase P163893: 4GL/ABL: OS-DELETE statement silently fails to delete Read Only files.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   15/04/2010
Status: Unverified

SYMPTOM(s):

4GL/ABL: OS-DELETE statement silently fails to delete Read Only files.

The 4GL/ABL OS-DELETE statement fails to delete Read Only files copied by the 4GL/ABL OS-COPY statement without issuing a warning or an error.

Under Windows XP, the OS-COPY statement carries the Read Only attribute of the source file over to its destination copy.

Under Windows XP, the OS-DELETE silently fails to delete the Read Only without generating an error or a warning.

Under UNIX, the OS-COPY statement does not carry over the Read Only attribute to the copied file.

Under UNIX, the OS-DELETE statement succeeds in deleting Read Only files regardless of whether they were created by OS-COPY or not.

FACT(s) (Environment):

Windows XP
OpenEdge 10.2B

CAUSE:

Bug# OE00197031

FIX:

None at this time. As a workaround, use the OS-COMMAND to delete the Read Only files. For example:


OS-COMMAND SILENT VALUE("del /F ReadOnlyFile.txt").