spot.cmd (464B)
1 @echo off 2 setlocal EnableDelayedExpansion 3 4 set start_path="C:\ProgramData\Microsoft\Windows\Start Menu" 5 cd %start_path% 6 7 set row= 8 for /f "usebackq tokens=*" %%f in (`dir /b/s *.lnk`) do set row=!row!"%%f"; 9 10 :s_tmploop 11 set s_tmpfile="%tmp%\s_spot.%random%.tmp" 12 if exist %s_tmpfile% goto:s_tmploop 13 14 wmenu.exe -e %row% | more > "!s_tmpfile!" 15 16 set /p c_tmpfile=<!s_tmpfile! 17 if not exist "%c_tmpfile%" exit 18 del /f !s_tmpfile! 19 start "%c_tmpfile%" "%c_tmpfile%" 20 endlocal