Rem This script can be used to send SID monitor files to Stanford. Rem Rem Run this script to send data in the ToSend directory Rem Rem The following lines should be set to describe your site Rem The ToSend directory must be created to enable automatic Rem copies of the data files to be put there. Rem This version of sidsend.bat for versions of sidsend.exe after May 2006 Rem A record of files sent will be put into EventLog\UpLoadLog.txt set SID_log=EventLog\UpLoadLog.txt REM *** Move up from /BIN directory, this is SID root cd .. REM *** Make a temp directory move files to the Sending dir REM *** This prevents a possibility of losing data mkdir ToSend\Sending move ToSend\*.csv ToSend\Sending\ REM *** The next line connects to Stanford and sends your file. REM *** FTP does not return success / fail code. ftp -i -s:Conf\ftp_cmds.txt -A sid-ftp.stanford.edu Rem *** Make a log entry date/t >> "%SID_log%" time/t >> "%SID_log%" dir ToSend\Sending\*.csv/b >> "%SID_log%" REM *** Now remove the files just sent & temp 'Sending' directory del ToSend\Sending\*.csv rmdir ToSend\Sending