KFHT#34512 Exact-koppeling

svn path=/Website/branches/v2015.3/; revision=27946
This commit is contained in:
Maarten van der Heide
2016-01-27 15:43:18 +00:00
parent bb80ba194f
commit 12b8506942

View File

@@ -1,25 +1,25 @@
@echo off
rem ..: getftp_fromVnW.bat
rem ..: Ophalen met ftp van
rem ..: Parameter filename of masker
rem ..:----------------------------------
REM GEN_IMPORT_EXACT
REM
REM KFHT
REM
REM Importeert opdrachtkosten (gefactureerd) uit Exact.
REM
REM Context : roep deze file aan indien nodig, of schedule deze
REM Vereist : de randvoorwaarde voor het gebruik van gen_import
REM
REM $Revision$
REM $Id$
REM
REM (c) 2015 Facilitor B.V.
REM
set hostname=145.50.77.208
set input_file=getftp_fromVnW.ftpscr
REM ================================================== cleanup
copy .\Exact\EXACT*.xml .\Exact\Backup
del .\Exact\EXACT*.xml
REM ================================================== transfer file to KIEN/FACILITOR
ftp.exe -n -s:ftp_htc2opdr.scr
REM ================================================== create exportfile
REM cscript ..\..\..\utils\gen_import\gen_import.wsf KFHT EXACT >>gen_import.log 2>>&1
if %1!==! goto error
echo user facilitor> %input_file%
echo facilit0r>> %input_file%
echo prompt >> %input_file%
echo bin >> %input_file%
echo cd ToVnW >> %input_file%
echo ls >> %input_file%
echo mget %1 >> %input_file%
echo mdelete %1>> %input_file%
echo bye >> %input_file%
ftp -n -s:%input_file% %hostname%
goto done
:error
echo "Usage: getftp_fromVnW.bat [filename | filename-masker]"
:done
rem ..:----------------------------------