FAQ & Knowledge Base

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

Prevent or modify shell commands

Question / Problem

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

Answer / Solution

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.