Knowledgebase

status_loader

Exclude a drive from the TJamShellList

Question / Problem

How can I exclude a drive from the TJamShellList?

Answer / Solution

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).

Need further help getting started?

You did not find what you were looking for? Please contact us so we can provide an answer to your question.

Contact Form