Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for lastfile.bat

(view source code of lastfile.bat as plain text)

  1. @ECHO OFF
  2. ECHO.
  3. ECHO LastFile.bat,  Version 1.00 for Windows NT 4 / 2000
  4. ECHO Reopens the most recently used file from the Documents folder
  5. ECHO.
  6. ECHO Written by Rob van der Woude
  7. ECHO
  9. PUSHD %UserProfile%\Recent
  10. FOR /F "tokens=*" %%A IN ('DIR /B /OD') DO SET LastFile=%%~fA
  11. POPD
  12. START "Most recently used file" "%LastFile%"

page last modified: 2023-03-10