Date Variable in XP Command Line FTP

May 27, 2009 at 09:35:34
Specs: Windows XP
Hi All,

Wondering if it is possible to import the
%DATE% variable
into command line FTP. Looking for something
like:

ftp
open ftp.example.com
user example_username
password example_password
cd /data/leads
lcd C:\data
get leads_%DATE%.csv
close

Is this possible? Thanks!


See More: Date Variable in XP Command Line FTP

Report •


#1
May 27, 2009 at 09:42:50
@echo off > %0.ftp

>> %0.ftp echo o mysite.com
>> %0.ftp echo username
>> %0.ftp echo password
>> %0.ftp echo cd /files
>> %0.ftp echo get %date%.csv

ftp -s:%0.ftp


=====================================
If at first you don't succeed, you're about average.

M2


Report •
Related Solutions


Ask Question