Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1711

Labels in batch files: TCC vs CMD.exe

$
0
0
The following batch file is runned differently by TCC and CMD:

@echo off
if not exist readme.txt (
:echo This is a comment
echo readme.txt does not exist
)


TCC silently ignores the "echo readme.txt does not exist" line (displays nothing) and CMD.exe echoes "readme.txt does not exist" as expected. This is not good for me because now I need to fix all my batch files. The TCC is declared to be fully compatible with CMD and I expected it to run existing batch files just as CMD does. Is...

Read more

Viewing all articles
Browse latest Browse all 1711

Trending Articles