set gcin_sys=%GCIN_DIR%
set gcin_bin=%gcin_sys%\bin
set gcin_script=%gcin_sys%\script
set gcin_user=%APPDATA_GCIN%

cd /d %gcin_user%
copy %1 tmpfile
"%gcin_bin%"\tsd2a32 %2 >> tmpfile
"%gcin_bin%"\tsa2d32 tmpfile %2
