Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for sclist.bat

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

  1. @ECHO OFF
  2. REM List properties of all shortcuts in Start Menu
  3. REM Needs SHORTCUT.EXE from the Resource Kit
  4.  
  5. FOR /D %%A IN ("%SYSTEMROOT%\Profiles\%USERNAME%\Start Menu\Programs\*") DO CALL :FindLnk %%A
  6. GOTO :EOF
  7.  
  8. :FindLnk
  9. PUSHD %*
  10. IF EXIST *.lnk FOR %%B IN (*.lnk) DO CALL :ListLnk "%%B"
  11. FOR /D %%B IN ("%*"\*) DO CALL :FindLnk %%B
  12. POPD
  13. GOTO :EOF
  14.  
  15. :ListLnk
  16. SHORTCUT -u all %*
  17. ECHO.
  18. GOTO :EOF
  19.  

page last uploaded: 2017-07-06, 12:37