@ECHO Off

REM	
REM	Starter {archivename}
REM	
REM created: {date}




for %%n in (%path%) DO IF EXIST %%n\jview.exe goto startJView
for %%n in (%path%) DO IF EXIST %%n\system\jview.exe goto startJView

for %%n in (%path%) DO IF EXIST %%n\java.exe goto startJava
for %%n in (%path%) DO IF EXIST %%n\system\java.exe goto startJava

:errormsg
	ECHO ERROR: Can not start program.
	ECHO   Please ensure that jview.exe or
	ECHO   java.exe are within your dos path.
	ECHO   (path=%PATH%)
	choice "continue "
	goto finished



:startJava

	REM
	REM 	try Sun VM
	REM 

	ECHO {archivename} started (java.exe)

	java -classpath {archivename} jlog.jim.ViewerMain
	goto finished



:startJView

	REM
	REM 	Microsoft jview.exe
	REM 

	ECHO {archivename} started (jview.exe)

	jview /cp:a {archivename} jlog.jim.ViewerMain
	goto finished



:finished	
	ECHO (done)