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

Deleting Files with SQR -Reply



You can use the SYSTEM command with "delete foo.obj" in a string

>>> Chris Hagen <Chris_Hagen@LASALLE.COM> 03/10/98 04:10pm >>>
     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