PDA

View Full Version : Current date folder variable in ftp


sn16154
Feb 23, 2011, 06:30 AM
I have files in the current date folder. I want to ftp it to a remote server. Can anyone *** help me to write a dos bat file?

Thanks.

Curlyben
Feb 23, 2011, 06:34 AM
Try this:

I have a simple .bat that points at another file.
Makes editing easier.

So code for bat:



ftp -i -s:LOCATION OF INSTRUCTION FILE\INSTRUCTION.txt

Text of INSTRUCTION file


open IP of FTP
USERNAME
PASSWORD
mput flag.txt (simple flag file)
y
mput YOUR_FILES
y
delete flag.txt
bye
exit

sn16154
Feb 24, 2011, 12:35 PM
Thanks. Within the ftp commands, can we specify a date variable?