I have created a simple script that copies the file, but doesn't give me only the current day file. I'm not sure what I'm doing wrong.
:: @echo off
setlocal
:: Checking for production cluster
if not exist e: exit
date /t
for /f "tokens=1-4 delims=/ " %%A in ('date /t') do (
set M=%%B
set D=%%C
set Y=%%D)
xcopy E:\ACHDlrPPcsvDownload\*-%Y%%M%%D%*-GMACTEST.csv /y E:\ACHDLRCSV
pause
endlocal
I also want to ftp this file to another server. I've tried the basic FTP command but it doesn't work.