Thanks a lot. The batch file works like a charm. Here it is, for the record:
File: zz.bat
cd /D P:\zz1
for %%f in (*-T.dly) do tail -n 3 %%f > ..\zz2\%%f
http://img188.imageshack.us/img188/6497/11142009181112.png
--- In amibroker@yahoogroups.com, Robert Chevallier
wrote:
>
> I'll
I'll suggest the following simple script :
cd /D P:\zz1
for %f in (*-T.dly) do tail -n 3 %f > ..\zz2\%f
remember you have to change %f to %%f if you store the script in a .BAT or
.CMD file
2009/11/13 lesv99
>
>
>
>
> Thanks. "Tail.exe" sounds like a good idea but I have problems with
> outputt
Thanks. "Tail.exe" sounds like a good idea but I have problems with outputting
data to multiple files. As long as I output data to the command console
everything works fine. Below is an example of outputting the last three lines
of data from all the files in a folder to the console, with t
Another way could be to use the "tail" utility in a command line batch (see
for instance http://sourceforge.net/projects/unxutils/)
and use to 1st create files with just the last line (tail -n 1 *
file-alllines* > *file-lastline* )
and use these files for import
2009/11/13 lesv99
>
>
>
>
> If th
If there is no way to do it with ASCii Importer then how about importing data
using AFL? You would just need a "for" loop like the one below to extract the
last line in the data array, but I don't have a clue about the rest of the code
needed for importing data (if it's possible at all), I cou