Batch Script for Transferring Files

You can use this script to transfer the auto exports to your server if you are hosting assay3 internally and the vbscripts don’t work


::: Begin set date

for /f "tokens=1-4 delims=/-. " %%i in ('date /t') do (call :set_date %%i %%j %%k %%l)
goto :end_set_date

if "%1:~0,1%" gtr "9" shift
for /f "skip=1 tokens=2-4 delims=(-)" %%m in ('echo,^|date') do (set %%m=%1&set %%n=%2&set %%o=%3)
goto :eof

::: End set date

copy /Y "C:\Program Files\FileMaker\FileMaker Server\Data\Documents\assayresults.csv" "\\hvkw01\assaystorage\%yy%Results.csv"