Problem with FOR statement in TCC but not M$ CMD

#1
Moin,
if I execute in TCC following batch I get the error

Code:
[D:\myApp\bin]Generator.bat --help
D:\myApp\bin\Generator.bat [8]  Syntax: FOR [/A:[[-][+]rhsdaecjot] /D /F ["Optionen"] /H /I"Text" /L /N[j]/O[:][-]adegnrstu /R [Pfad] /T"..." /W] %Variable IN
([@]Auswahl | Start, Schritt, Ende) [DO] Befehl ...
Fehler: Hauptklasse de.myApp konnte nicht gefunden oder geladen werden
This is the batch (a little bit anon but the for statement is exactly the same):

Code:
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
set HOME=%~dp0..

set CLASSPATH=%HOME%\bin
for /R %HOME%\libs %%i in (*.jar) do (
    set CLASSPATH=!CLASSPATH!;%%i
)

set PATH=%PATH%;%HOME%\libs

cd %HOME%
java -cp "%CLASSPATH%" de.myApp %*

ENDLOCAL
The problem seems to be:
Code:
%~dp0..
but in a normal TCC you can enter
Code:
cd %~dp0..
and you will be one directory up.

Any ideas why Micro$oft cmd.exe is executing the batch correctly and tcc not?

Thank you in advance,
Jogi