Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

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

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/d472c48140512ff585256850005fb6d3.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1