Need equialent command for batch scripts

Hi Friend,

what is the equivalent command for batch scripting of tail -1.

for example : i have a.txt file with below the contents. i need to print last line
---------------------------------
Use descriptive thread titles when posting. For example, do not post questions with subjects like "Help Me!", "Urgent!!" or "Doubt". Post subjects like "Execution Problems with Cron" or
"Help with Backup Shell Script". Se

output : "Help with Backup Shell Script". Se

Thanks,
Jewel

If your system is setup up normally cron, at, and batch all can run

tail -1

It WILL NOT appear on your screen. Exactly what command did you use to set up your batch so it will execute ?

i have a .bat file of windows

You mean without using tail -1 you want to see last line as output using some other Unix command/script?

for i in *.bat
do sed -n '$p' $i
done