- Aug
- 2,033
- 82
This (test.cmd) works in cmd.exe
...returns...
When I run it under CMDebug using CMD Syntax, it returns;
...which is not what I get with cmd.exe
When I run it under CMDebug using TCC Syntax, it returns;
When I run test.cmd from TCC, it returns;
Joe
Code:
@echo off
ver
where cmd.exe
set "TwoParams(x,y)= x=x,y , y=(x,y)"
set /A "test=%TwoParams(x,y):x,y=123,456%"
echo x=%x%, y=%y%
...returns...
Code:
c:\utils>test.cmd
Microsoft Windows [Version 6.1.7601]
C:\Windows\System32\cmd.exe
x=123, y=456
When I run it under CMDebug using CMD Syntax, it returns;
Code:
TCC-RT 23.00.17 x64 Windows 7 [Version 6.1.7601]
x=123456, y=456
...which is not what I get with cmd.exe
When I run it under CMDebug using TCC Syntax, it returns;
Code:
TCC-RT 23.00.17 x64 Windows 7 [Version 6.1.7601]
C:\Windows\System32\cmd.exe
x=123456, y=456
When I run test.cmd from TCC, it returns;
Code:
c:\users\jlc\utils>test.cmd
TCC 23.00.23 x64 Windows 7 [Version 6.1.7601]
C:\Windows\System32\cmd.exe
TCC: C:\Users\jlc\utils\test.cmd [5] Unbalanced parentheses "(x"
x=, y=
Joe