- Dec
- 1
- 0
Moin,
if I execute in TCC following batch I get the error
This is the batch (a little bit anon but the for statement is exactly the same):
The problem seems to be:
but in a normal TCC you can enter
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
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..
Code:
cd %~dp0..
Any ideas why Micro$oft cmd.exe is executing the batch correctly and tcc not?
Thank you in advance,
Jogi