Skip to main content

WHY  this instruction doesn't work or is ignored?
CALL "SYSTEM" USING "RMDIR /S  /Q f:\\backup\\domingo".

WHY  this instruction doesn't work or is ignored?
CALL "SYSTEM" USING "RMDIR /S  /Q f:\\backup\\domingo".

02 del-del pic x ( 29) value "RMDIR /S /Q f:\\backup\\domingo".
CALL "SYSTEM" USING DEL-DEL.
doesn't work or is ignored

WHY  this instruction doesn't work or is ignored?
CALL "SYSTEM" USING "RMDIR /S  /Q f:\\backup\\domingo".

Wascar,

One thing to do is to get the exit code returned.  This can be done as follows:

01 del-exit-code pic s9(4) BINARY.
...
call "SYSTEM" using DEL-DEL, OMITTED, del-exit-code
if del-exit-code not equal 0
    *> process the error
end-if.

I believe also, since you are on Windows, that the command must be:
    CMD.EXE /C RMDIR /S /Q f:\\backup\\domingo