Here is my script I wrote... Note I use Visual Cut to create the file.
@echo off
Rem this routine copy the export files together, clean up of files
rem a batch file call je_ftp runs every hour to transfer the file to the ftp site along with the latest validation file
REM you can add a move command if necessary to setup the output.csv file
REM SET LABEL
REM new file copy with date and time yymmdd_hhmmss
REM where yymmdd_hhmmss is a date_time stamp like 030902_134200
set hh=%time:~0,2%
REM Since there is no leading zero for times before 10 am, have to put in
REM a zero when this is run before 10 am.
if ""%time:~0,1%""=="" "" set hh=0%hh:~1,1%
set yymmdd_hhmmss=%date:~12,2%%date:~4,2%%date:~7,2%%hh%%time:~3,2%%time:~6,2%
set mmddyyyy=%date:~4,2%%date:~7,2%%date:~10,4%
set datetime=_%yymmdd_hhmmss%
REM Blackline file to create current Validation table and to transfer the JE files
Rem Validation creation with Visual cut
""C:\Program Files\Visual CUT 11\Visual CUT.exe"" -e ""\\appserver2003\Blackline\Reports\validation_file.rpt""
copy \\appserver2003\blackline\validation\*.txt /a \\appserver2003\blackline\validation\validation_%datetime% /b /y
REM FTP transfer suspensesd.
""C:\Program Files\coreftp\coreftp.exe"" -O -site blackline -u \\appserver2003\blackline\validation\validation_%datetime% -p \prod\ -log v:\Blackline\log.log
del /q \\appserver2003\blackline\validation\Validation*.*
Rem Journal transfer
""C:\Program Files\coreftp\coreftp.exe"" -O -site blackline -u \\appserver2003\blackline\je\je_imported\journalstatus*. -p \prod\ -log v:\Blackline\log.log
move \\appserver2003\blackline\je\je_imported\journalstatus*. \\appserver2003\blackline\je\je_processed\