Please add the following line to your smb.conf file: message command = %%PREFIX%%/bin/LinPopUp "%f" "%m" %s; rm %s