@ECHO OFF

:BEGIN
CLS
SET PASS=%1
SET PIN=%2

IF [%PASS%] == [] GOTO VOIDP
IF [%PIN%] == [] GOTO INPIN
GOTO END

:VOIDP
SET /p PASS="Inserire la password utilizzata per accedere ai servizi telematici: " %=%
IF [%PASS%] == [] GOTO PASSVOID

:INPIN
SET /p PIN="Inserire il PIN utilizzato per accedere ai servizi telematici: " %=%
IF [%PIN%] == [] GOTO PINVOID
GOTO END


:PASSVOID
ECHO "La password e' un dato obbligatorio"
GOTO VOIDP

:PINVOID
ECHO "Il PIN e' un dato obbligatorio"
GOTO INPIN


:END




set _JAVA_PATH="Inserire il percorso della jre"
set _LIBPATH=..\lib
set _CFGBPATH=..\prog\cfg

set _CLASSPATH=..\entratelMultifile.jar

set _CLASSPATH=%_CLASSPATH%;%_LIBPATH%\cryptotools16-3.6.2_patch3.jar
set _CLASSPATH=%_CLASSPATH%;%_LIBPATH%\bcpkix-jdk15on-149.jar
set _CLASSPATH=%_CLASSPATH%;%_LIBPATH%\bcprov-jdk15on-149.jar
set _CLASSPATH=%_CLASSPATH%;%_LIBPATH%\bcmail-jdk15on-149.jar
set _CLASSPATH=%_CLASSPATH%;%_LIBPATH%\commons-lang-2.0.jar
set _CLASSPATH=%_CLASSPATH%;%_LIBPATH%\commons-io-2.4.jar
set _CLASSPATH=%_CLASSPATH%;%_LIBPATH%\jdom_all.jar
set _CLASSPATH=%_CLASSPATH%;%_LIBPATH%\Supporto.jar
set _CLASSPATH=%_CLASSPATH%;%_LIBPATH%\commons-exec-1.1.jar
set _CLASSPATH=%_CLASSPATH%;%_LIBPATH%\gson-2.6.2.jar

set _CLASSPATH=%_CLASSPATH%;%_LIBPATH%\commons-logging-1.2.jar
set _CLASSPATH=%_CLASSPATH%;%_LIBPATH%\decoder.jar
set _CLASSPATH=%_CLASSPATH%;%_LIBPATH%\fontbox-2.0.6.jar
set _CLASSPATH=%_CLASSPATH%;%_LIBPATH%\pdfbox-2.0.6.jar
set _CLASSPATH=%_CLASSPATH%;%_LIBPATH%\pdfbox-tools-2.0.6.jar
set _CLASSPATH=%_CLASSPATH%;%_LIBPATH%\preflight-2.0.6.jar
set _CLASSPATH=%_CLASSPATH%;%_LIBPATH%\xmpbox-2.0.6.jar
set _CLASSPATH=%_CLASSPATH%;%_LIBPATH%\ricevute2.0.jar

set _CLASSPATH=%_CLASSPATH%;%_LIBPATH%\LGoodDatePicker-10.3.1-backport.jar


%_JAVA_PATH%\java -ms30M -mx800M -cp %_CLASSPATH% it.sogei.telematici.multifile.RunDownload %PASS% %PIN%

PAUSE
