FTP to pass current date
Posted: 09 Mar 2009 04:18
Hi,
Anyone can help me on how to pass the current using ftp. The file I have on my Unix OS to get the file YYYMMDD.txt. Everyday will get the current file using the said format.
Here is my batch file ;
REM ftpconnect.bat
ftp -i -s:c:\putfilehere\ftpconnect.prg server1
REM ftpconnect.prg
myuser
mypassword
bin
hash
prompt
cd /getfilehere
get YYYYMMDD.txt
bye
Thanks in Advance,
Ferdie
Anyone can help me on how to pass the current using ftp. The file I have on my Unix OS to get the file YYYMMDD.txt. Everyday will get the current file using the said format.
Here is my batch file ;
REM ftpconnect.bat
ftp -i -s:c:\putfilehere\ftpconnect.prg server1
REM ftpconnect.prg
myuser
mypassword
bin
hash
prompt
cd /getfilehere
get YYYYMMDD.txt
bye
Thanks in Advance,
Ferdie