[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Deleting Files with SQR



Chris,

Look in the LET section of the SQR Reference Manual.  There are
two let functions: exists() and delete() which will do what you
want.

Ray

>      HELLO.
>
>      I am writing some interface programs and am wondering if it is
>      possible to write a small SQR that will delete a file if that file
>      exists.
>
>      I would like the program to:
>
>      1) Read C:\TEMP
>      2) See if C:\TEMP\FOO.dat exists.
>      3) Delete C:\TEMP\FOO.dat if it indeed exists.
>
>      I have looked through the B-board postings and my SQR documentation
>      but have not seen anything discussing this issue.
>
>      Thank you for your time and consideration.
>
>      Chris
>
----------------------------------------------------------------------
Ray Ontko       |  Ray Ontko & Co  |  "Time for a new signature line."
rayo@ontko.com  |  Richmond, In    |  See us at http://www.ontko.com/