Sebastian Tennant writes: > Quoth Thierry Volpiatto : >> I would like to do some thing like that: >> >> (shell-command "~/bin/serialrename.py -d dir -e txt")) > > I believe what you want can be achieved like this: > > (shell-command (format "~/bin/serialrename.py -d %s -e txt" dir)) > Thank you again, i did that, it work fine :) (setq serial-rename-command "~/bin/serialrename.py") (defun tv-serial-rename (dir ext name start) (interactive "sDir: \nsExt: \nsName: \nsStart: ") (find-file dir) (shell-command (format "%s -d %s -e %s -n %s -s %s" serial-rename-command dir ext name start))) Ci joint le script python: