DELETE-FILE FROM RBASIC (AREV Specific)
At 23 DEC 1999 12:25:27PM FRANK SMITH wrote:
I HAVE A NEED TO DELETE A LIST OF FILES FROM A RBASIC PROGRAM.
I EXECUTE "DELETE-FILE ":FILENAME IN THE PROGRAM AND IT THEN GIVES THE STANDARD CONFIRMATION MESSAGE AND WAITS FOR A "Y" OR "N".
IS THERE ANY WAY TO LOAD THE "Y" TO THE INPUT BUFFER BEFORE MAKING THE EXECUTE. OR IS THERE A WAY TO HAVE DELETE-FILE TO ASSUME THE "Y"
INSTEAD OF PROMPTING FOR IT.
THANKS FOR ANY HELP.
FRANK SMITH
At 23 DEC 1999 03:38PM Steve Smith wrote:
OSDELETE "C:\MYFILE.TXT"
does what you need. DIR() AND INITDIR may also be useful to you.
See your AREV RBASIC manual.
Steve
At 23 DEC 1999 05:16PM Bill Titus wrote:
The sytax should be "DELETE-FILE ":filename:" (S)" The message calling for user response is (S)uppressed, but you can't abort the file deletion.
At 23 DEC 1999 08:45PM CT Savell wrote:
You could put a DATA 'Y' statement ahead of the DELETE-FILE statement in your script. That works in REVG and I assume it would do so in AREV.
At 23 DEC 1999 10:54PM Steve Smith wrote:
Sorry, I misread your posting and had assumed you meant a series of DOS files.
If you intend to delete temporary AREV files from RBASIC, then refer to the other postings in this thread.
Steve