I am writing a batch file which will identify the names of all .jak files in a directory (location specified) and convert them to .java files using AHEAD composer. The batch file code:
@echo off
set PATH=%PATH%;C:\AHEAD\ahead-v2013.03.20\build\bin;
set PATH=%PATH%;C:\Program Files\Java\jdk1.7.0\bin;
set PATH=%PATH%;C:\Program Files\apache-ant-1.9.3\bin;
set PATH=%PATH%;C:\AHEAD\ahead-v2013.03.20\miscellaneous\javacc\bin;
set PATH=%PATH%;C:\Cygwin\bin;
dir C:\AHEAD\JAK\*.jak /b >> list.txt
for /F "tokens=*" %%a in (list.txt) do call :Foo %%a
goto End
:Foo
set z=%1
echo %z%
jak2java %z%
goto :eof
:End
PAUSE;
cmd
With this i am getting the error System cannot find batch label specified -Foo
But the same program works well for javac
command and .java
files