Welcome Guest. Please Login or Register. Apr 5th, 2018, 10:57pm
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
If you require a dump of the post on your message board, please come to the support board and request it.
Or, more straightforwardly (and no need for a PROC):
Code:
SYS "DeleteFile", file$
But I already suggested that to the OP, and he said he tried it, so probably the error message he is referring to is a popup window like the one you get with a missing floppy.
Re: Disc drive check
« Reply #6 on: Mar 19th, 2015, 12:21pm »
Many thanks for assistance. I have found solution. Cycling through to discover which LT$ is actual disc drive using below PROC and checking to see if file$ present. If CDFLAG%=1 then simple OSCLI "DEL """+file$+"""" completes.
DEFPROCCHECKDISK(LT$) ON ERROR LOCAL:ENDPROC OSCLI "CD """+LT$+"""" LOCAL dir%, sh%, res% DIM dir% LOCAL 317 SYS "FindFirstFile", "*", dir% TO sh% IFsh%<>-1P%=OPENUPfile$:IFP>0CDFLAG=1:CLOSE#P% ENDPROC