Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

deleting files in paradox 4.0 1

Status
Not open for further replies.

new57

Programmer
Nov 3, 2001
17
US
hi all,

i maintain an old legacy application.

i have changed a report to now be sent to a file myfile.rpt in order to be printed outside of paradox.

can someone tell me, if posible, within the the paradox script to check for myfile.rpt before the routine executes in order to delete the existing file.

many thanks
 
We do this quite a lot in our code.

myfile = "myfile.rpt"

IF ISFILE(myfile)THEN
RUN NOREFRESH "Del " + myfile
ENDIF

RUN issues a DOS command ("Del myfile.rpt"). NoRefresh is an option which freezes the screen, hiding the result of the command.

Phil
 
phil,

thanks so much,

the code worked perfectly!

cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top