Sounds like you’re on a windows platform. Here’s what you can do to make an executable TCL procedure and call dos commands.
First, make the extension of the file that contains all your TCL commands “htc”. If you look at your list of file types (in windows explorer, tools pull down, options…, file types tab) you’ll see that HTC is pointed to ‘hcitcl’.
I suggest that you make a simple file like ‘echo hello world’ and run a file with just that command from a shell. It runs just like a batch file would, you just type the name of the file.
Anyone who knows better can jump in here but I think that you can’t run a dos command if it comes from command.com. If it’s a script in the path you can run it using exec. Or better yet if you’re going to do file manipulation you should use the file command in TCL.
So, you could write:
exec hcienginerun -p my_process
But not:
exec dir
If you really have to run command.com dos commands then put them in a batch file and exec the batch file.