(view source code of lastfile.bat as plain text)
@ECHO OFF
ECHO.
ECHO LastFile.bat, Version 1.00 for Windows NT 4 / 2000
ECHO Reopens the most recently used file from the Documents folder
ECHO.
ECHO Written by Rob van der Woude
ECHO http://www.robvanderwoude.com
PUSHD %UserProfile%\Recent
FOR /F "tokens=*" %%A IN ('DIR /B /OD') DO SET LastFile=%%~fA
POPD
START "Most recently used file" "%LastFile%"
page last modified: 2024-04-16; loaded in 0.0077 seconds