thank you, but it doesn't solve my problemi only need one line as output. imagine a directory contains millions of files, no point to waste time on displaying the rest...
there's some tool kits provide by MS hv tail function, but i'd better make sure i don't relie on some extension applications to finish my script.
dir /p/o:-d
this command shows a screen. i don't really know how to display one file, perhaps you need to use SORT command
Freedom is slavery.
Ignorance is strength.