I saw a couple similar questions but could quite cobble together what I want. This was close because it gives me the name of the most recent batch file:
for /f "delims=" %%x in ('dir /od /b c:\maps\*.bat') do set recent=%%x
echo %recent%
But the batch file that contains this is in, say, c:\start, so I need to get back a full pathname, not just the filename. I can then use "call" to run the batch file.
(I'm doing this on xp, incidently.)
dircommand??