#### bwisely

Hello
environment variable is not correct in TCC.exe mode.

%ProgramFiles(x86)% ==> correct is C:\Program Files (x86)

but in Tcc always C:\Program Files(x86), not C:\Program Files (x86)

Thanks

#### Charles Dye

##### Super Moderator
Hello
environment variable is not correct in TCC.exe mode.

%ProgramFiles(x86)% ==> correct is C:\Program Files (x86)

but in Tcc always C:\Program Files(x86), not C:\Program Files (x86)

Thanks

Not a bug, just an unfortunate choice of characters in the variable name. TCC interprets that as the variable %PROGRAMFILES, followed by the literal text "(86)". To expand the variable name you want to expand, you can use %[PROGRAMFILES(X86)] -- this makes TCC interpret everything inside the square brackets as the variable name.

#### rconn

Or, if you want 100% emulation of CMD variable names, you can set "CMDVariables=Yes" in your TCMD.INI. (But then you will not be able to use any TCC-style variables with a single leading %.)

Replies
5
Views
298
Replies
3
Views
2K
Replies
7
Views
2K
Replies
2
Views
2K
Replies
57
Views
8K
Replies
2
Views
2K
Replies
12
Views
3K
Replies
4
Views
2K
Replies
14
Views
4K
Replies
2
Views
2K
Replies
7
Views
7K
Replies
2
Views
464
Replies
10
Views
676
Replies
3
Views
782
Replies
2
Views
954
Replies
3
Views
1K
Replies
30
Views
6K
Replies
2
Views
1K
Replies
5
Views
1K
Replies
10
Views
2K
Replies
0
Views
955
Replies
3
Views
1K
Documentation environment variables
Replies
3
Views
1K
Replies
2
Views
2K
Replies
0
Views
994
Replies
5
Views
3K
Replies
13
Views
3K
Replies
1
Views
1K
Replies
0
Views
1K
Replies
0
Views
2K
Replies
3
Views
2K
Replies
0
Views
2K
Replies
2
Views
3K
Replies
3
Views
226
Replies
3
Views
248
Replies
5
Views
308
Replies
1
Views
311
Replies
3
Views
740
Replies
4
Views
533
Replies
5
Views
683
Replies
4
Views
1K
Replies
2
Views
820
Replies
8
Views
1K
Replies
2
Views
869
Replies
9
Views
1K
Replies
3
Views
827
Replies
6
Views
1K
Replies
5
Views
2K
Replies
2
Views
962
Replies
3
Views
1K