I have a variable containing the full path of an executable. This variable is used in a procedure as
ecec $filea $fileb
This works fine with paths that do not have a space character in it. However, a path that has a a space character also has braces around the whole path and the ecec function refuses to launch the executable.
If I remove the braces from the variable it works fine. I can do this using 2 regsub functions to replace the braces with blanks.
There must be an easier way to to do this.
Could someone please point the way.
Thanks
ecec $filea $fileb
This works fine with paths that do not have a space character in it. However, a path that has a a space character also has braces around the whole path and the ecec function refuses to launch the executable.
If I remove the braces from the variable it works fine. I can do this using 2 regsub functions to replace the braces with blanks.
There must be an easier way to to do this.
Could someone please point the way.
Thanks