Batch to get FTP's filename & datetime stamp

Microsoft Windows xp professional w/serv...
October 12, 2010 at 23:14:27
Specs: Windows XP
Hi,

I need to get the files from FTP based on timestamp. I need current dated files.
I do not find any help from ftp commands.

1 approach i plan to follow is to use the ftp command -> 'ls -ltr file.txt"

file.txt
---------
-rw-r--r-- 1 aves eldcs 573549 Aug 6 2008 C1320_P4.zip
-rw-r--r-- 1 aves eldcs 1252955 Aug 8 2008 C1500_P4.zip
-rw-r--r-- 1 aves eldcs 4877 Sep 5 2009 C1507_P4.zip

From this text file i need to take only the file name and datetime column. Any help with Batch scripts to do this?

or

Any help to get the current date files from FTP?


See More: Batch to get FTPs filename & datetime stamp

Report •

#1
October 12, 2010 at 23:29:35
@echo off > newfile & setLocal enableDELAYedeXpansion

for /f "tokens=6-9 delims= " %%a in (file.txt) do (
echo.%%a %%b %%c %%d
) >> newfile


=====================================
Helping others achieve escape felicity

M2


Report •

#2
October 13, 2010 at 00:31:06
Amazing!!! :-) thax a lot...

will get back with other requests...


Report •
Related Solutions


Ask Question