echo off
set PORT=%1
echo [DEFAULT] > cfg\at.cfg
echo ConnectionType=acceptor >> cfg\at.cfg
echo SocketAcceptPort=%PORT% >> cfg\at.cfg
echo SocketReuseAddress=Y >> cfg\at.cfg
echo StartTime=00:00:00 >> cfg\at.cfg
echo EndTime=00:00:00 >> cfg\at.cfg
echo SenderCompID=ISLD >> cfg\at.cfg
echo TargetCompID=TW >> cfg\at.cfg
echo ResetOnLogon=Y >> cfg\at.cfg
echo FileStorePath=store >> cfg\at.cfg
echo [SESSION] >> cfg\at.cfg
echo BeginString=FIX.4.0 >> cfg\at.cfg
echo DataDictionary=..\spec\FIX40.xml >> cfg\at.cfg
echo [SESSION] >> cfg\at.cfg
echo BeginString=FIX.4.1 >> cfg\at.cfg
echo DataDictionary=..\spec\FIX41.xml >> cfg\at.cfg
echo [SESSION] >> cfg\at.cfg
echo BeginString=FIX.4.2 >> cfg\at.cfg
echo DataDictionary=..\spec\FIX42.xml >> cfg\at.cfg
echo [SESSION] >> cfg\at.cfg
echo BeginString=FIX.4.3 >> cfg\at.cfg
echo DataDictionary=..\spec\FIX43.xml >> cfg\at.cfg
echo [SESSION] >> cfg\at.cfg
echo BeginString=FIX.4.4 >> cfg\at.cfg
echo DataDictionary=..\spec\FIX44.xml >> cfg\at.cfg
echo [SESSION] >> cfg\at.cfg
echo BeginString=FIXT.1.1 >> cfg\at.cfg
echo DefaultApplVerID=FIX.5.0 >> cfg\at.cfg
echo TransportDataDictionary=..\spec\FIXT11.xml >> cfg\at.cfg
echo AppDataDictionary=..\spec\FIX50.xml >> cfg\at.cfg
echo AppDataDictionary.FIX.5.0SP1=..\spec\FIX50SP1.xml >> cfg\at.cfg
echo AppDataDictionary.FIX.5.0SP2=..\spec\FIX50SP2.xml >> cfg\at.cfg
