Batch to get FTP's filename & datetime stamp

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

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"

-rw-r--r-- 1 aves eldcs 573549 Aug 6 2008
-rw-r--r-- 1 aves eldcs 1252955 Aug 8 2008
-rw-r--r-- 1 aves eldcs 4877 Sep 5 2009

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


Any help to get the current date files from FTP?

See More: Batch to get FTPs filename & datetime stamp

Report •

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


Report •

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

will get back with other requests...

Report •
Related Solutions

Ask Question