You do not say which tool you are using. I presume Linux. See:
VFXBase/LinXX/shell.fth
and look for >pShell and friends which do what you want. My apologies for the delay in answering - the notification system seems to be broken.