Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to remove braces

Status
Not open for further replies.

fhutt

Programmer
Jul 7, 2006
79
0
0
AU
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top