echo off
call ..\init.bat

set TEMP=%CD%

FOR /F %%B IN ( db.txt ) DO (
rem FOR %%B IN ( GEA10 ) DO (
echo 【%%B】登録を開始します。
java -classpath %CLASSPATH%;%CLS% mis.pdm.fukurou.process.MainProcess	^
	mis.pdm.fukurou.process.Process_DBParam	 			^
		-infoUSER=C00000								^
		-infoPGID=SAMPLE1								^
		-url_FROM=jdbc:oracle:thin:@localhost:1521:HYBS	^
		-user_FROM=GE 									^
		-passwd_FROM=GE 								^
		-driver_TO=org.postgresql.Driver				^
		-url_TO=jdbc:postgresql://200.1.51.30:5432/hybs	^
		-user_TO=GE										^
		-passwd_TO=GE									^
	mis.pdm.fukurou.process.Process_DBReader 			^
		-dbid=FROM										^
		-display=true									^
		-sql="select * from %%B"						^
	mis.pdm.fukurou.process.Process_DBWriter			^
		-dbid=TO										^
		-table=%%B
)

pause
