Compatibility issue with CMD.EXE

Aug 3, 2009
2
0
Germany
I have to call .cmd scripts from TCC wich contain environment variables with embedded dots like:

set A.B.C=something

and later use them in this way:

echo %A.B.C%

I will not get

something

(thats what CMD.EXE yields) but

.B.C

because TCC treats the first dor as terminator and, of course %A is not defined.

Would it be possible to:

1) add a switch to setdos that allows dots in variable names?
2) allow dots in *.cmd scripts all the time?

or is there already a work-arround.
Thanks for your suggestions
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,491
90
Albuquerque, NM
prospero.unm.edu
I have to call .cmd scripts from TCC wich contain environment variables with embedded dots like:

set A.B.C=something

and later use them in this way:

echo %A.B.C%

You can reference a variable with strange characters in the name by using the brackets syntax:

Code:
echo %[a.b.c]

But of course CMD.EXE doesn't understand that. I really think you'd simplify your life by using underscores instead of periods in variable names.
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
> I have to call .cmd scripts from TCC wich contain environment variables
> with embedded dots like:
>
> set A.B.C=something
>
> and later use them in this way:
>
> echo %A.B.C%
>
> I will not get
>
> something
>
> (thats what CMD.EXE yields) but
>
> .B.C
>
> because TCC treats the first dor as terminator and, of course %A is not
> defined.
>
> Would it be possible to:
>
> 1) add a switch to setdos that allows dots in variable names?
> 2) allow dots in *.cmd scripts all the time?

Definitely not #2, as that would break a few bazillion batch files & aliases
that expect a '.' to be an extension prefix.

Possibly #1 -- I'll add it to the suggestion list for the next version.

Rex Conn
JP Software
 
Similar threads
Thread starter Title Forum Replies Date
Patulus Yet another thread on CMD compatibility Support 16
N date and cmd compatibility Support 10
B TCC 14.02.37 CMD Compatibility Loss? Support 4
Stefano Piccardi WAD MKLINK CMD compatibility, MKLINK /X Support 6
dolmen Compatibility issues with cmd.exe Support 1
J goto compat issue makes all node/npm wrapper scripts fail to run... Support 2
cgunhouse TCToolBar /W Issue Support 2
G v28 Display Issue Support 7
Jay Sage Issue with CD_ENTER Alias Support 37
Jay Sage Issue with CD_LEAVE Alias Support 3
fpefpe How to? issue with % and evaluation Support 5
cgunhouse Standard User Account Issue Support 2
samintz WAD Display wrapping issue Support 5
M TCC color issue in ConEmu Support 4
samintz Timer issue Support 4
Alpengreis Documentation Minor issue in help file for view /E Support 1
samintz WAD ANSI issue Support 3
D TCSTART issue after reinstallation Support 14
A Documentation [Help file] OPTION "//" synopsis formatting issue Support 0
Chen Touboul Overtyping issue - i press the Insert key, help till press enter for new line in TCC Support 2
Y TCC and Cmder imcompatibility issue Support 7
M Another possibly strange remote registry issue Support 5
T WAD bpokestr issue Support 5
D High-DPI Scaling issue Support 1
S CMDebug 22 issue with del command Support 1
cgunhouse Foldermonitor Issue Support 7
samintz Build 38 Install issue Support 5
rps WAD Setlocal issue Support 4
Luiz Rodrigues Issue with Maven Support 1
Seven Update / install issue with 20.0.20.10.32 take command Support 7
Fross WebDav Drive Mapping Issue Support 19
D Upgrade issue Support 3
Fross V20b8 Everything Issue Support 5
T TCC display issue Support 1
cgunhouse _logfile Issue Support 5
T Fixed Querybox issue Support 1
cgunhouse Fixed Share Memory Issue Support 5
cgunhouse Foldermonitor with "/E" Option Issue Support 6
Fross TabComplete Argument Issue Support 1
fpefpe How to? Stange start up issue Support 1
C cosmetic issue with LIST's (I) Support 9
jbarnes1967 TC 18.00 x64 issue with lua io.popen() Support 2
D How to? Wildcards as sets - looping issue with FOR and REN Support 7
T WAD Free issue Support 6
R Fixed v17.0.54 Tab->COMSPEC Dialog Box Issue Support 2
R Minor Cosmetic Issue in Take Command Window Support 2
cgunhouse One line IFF ... Then ... Else ... EndIFF Statement issue in V17 Support 13
cgunhouse IFTP Path Issue in V17 - Fixed Support 7
S BDEBUGGER issue Support 9
cgunhouse @ISPROC Issue Support 15

Similar threads