[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
Check out the "exists" and "delete" functions under the Let command. Be
warned, however, that these functions (along with "rename") return 0 if
they are succesful!
On Tue, 10 Mar 1998, Chris Hagen wrote:
> 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
>
-----------------------------------------------------------------------
Donald Mellen | Ray Ontko & Co. - Richmond, IN - http://www.ontko.com/
donm@ontko.com | "In the beginning, there was nothing, which exploded"