show all open #Dir´s in the library viewer

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

show all open #Dir´s in the library viewer

Post by ABBKlaus »

In the debugger tools under Library Viewer i wish i could select FileSystem to show all open #Dir´s :roll:

Code: Select all

Filename$=GetTemporaryDirectory()+Str(Random(255))+".txt"
file=CreateFile(#PB_Any,Filename$)
Dir=ExamineDirectory(#PB_Any,"C:\","")
If Dir
  While NextDirectoryEntry(Dir)
    Select DirectoryEntryType(Dir)
      Case #PB_DirectoryEntry_File
        Debug DirectoryEntryName(Dir)
      Case #PB_DirectoryEntry_Directory
        Debug "["+DirectoryEntryName(Dir)+"]"
    EndSelect
    
    ; show all open #Dir´s in the library viewer (feature request)
    
    CallDebugger
  Wend
  FinishDirectory(Dir)
EndIf
If file
  CloseFile(file)
EndIf
DeleteFile(Filename$)
Regards Klaus