|i don't think straight batch (pre-XP) will swing it. You need another language, or an app. I prefer languages, but that's just me. vbscript is excellent. QBasic, or even gwbasic can do what you want. they can be downloaded. vbscript support is probably on-board your system. (search for *.vbs, cscript.exe, wscript.exe, to find out.)|
do while not ffile.atendofstream
'sometimes, there is discrepancy, which line is last: null can cause problems.
wscript.stdout.echo "last file is: "&last
wscript.stdout.echo "last LINE is: "&x
wscript.stdout.echo "drive is: "&zz
THEN, you need to place the data where you want it. this just echos...
(save as, f/e test.vbs)
(create a dummy file with names as needed, format as described)
cscript /nologo test.vbs