FAQ & Knowledge Base

Herzlich Willkommen in unserer Wissensdatenbank. Nutzen Sie die Suchfunktion oder durchstöbern Sie unsere Kategorien, um Antworten auf Ihre Fragen zu erhalten.

Kategorien: ShellBrowser Delphi Components | Alle Kategorien anzeigen

Die folgenden Inhalte sind leider nicht auf Deutsch verfügbar.

Prevent or modify shell commands

Frage / Problem

Is there a way to set the TJamShell controls to prevent the user from executing a shell command, e.g. Delete?

Antwort / Lösung

You could use the OnBeforeShellCommand event to overwrite the Windows Shell 's default behaviour depending on the affected files and/or the command the is about to be executed, and set the var parameter "AllowExecute" to False, to skip the default handling for these cases.