#include <stdio.h> #include <stdlib.h> void main(int argc, char *argv[]) { int i; for (i=0;i<argc;i++) printf("Arg[%d]=s\n",i,argv[i]); } compile as mytool.exe In tcl: set reply [exec -- "c:/mytools/mytool.exe"]