I would like to modify the following code to make it work:
set i 0
set arg$i {C:/Program File/hell0}
regsub -all -- {/} $arg$i "\x5c" arg$i
I get an error when running this code for the regsub line saying "can't read arg, no such variable". This is true but arg0 does exist and $i is a 0.
Could someone please help with this?
Thanks
set i 0
set arg$i {C:/Program File/hell0}
regsub -all -- {/} $arg$i "\x5c" arg$i
I get an error when running this code for the regsub line saying "can't read arg, no such variable". This is true but arg0 does exist and $i is a 0.
Could someone please help with this?
Thanks