(11-30-2023, 05:10 AM)SMcNeill Wrote:Very well stated! That is what I was starting to do..Code: (Select All)Print "Enter dir spec:";
Input Dir$
If _DirExists(Dir$) Then
RmDir Dir$
End If
If the directory isn't empty, then you'll need to write a routine to change to get the files in that directory, KILL them, and then RMDIR that directory. If there's directories inside that directory and not just files, then you'll want that routine to work recursively.
Could you write one?? It would have to be internal without any shell.
Given the two functions Kill and RMdir it could be done...