Knowledgebase

status_loader

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.

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