Welcome to our Knowledge Base. Search or browse through the topics below to find answers to your questions.
Categories: ShellBrowser Delphi Components | Show all categories
How can I exclude a drive from the TJamShellList?
You can use the OnAddItem event to exclude e.g. the floppy drive like this:
CanAdd := not (GetDriveType(PChar(JamShellList.GetFullPath(Item))) in [DRIVE_REMOVABLE]);
This will exclude the floppy drive. It is also possible to exclude other drives like the CD-ROM (DRIVE_CDROM).