ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Extracting executable program shortcuts from start menu?

(1/1)

JeffK:
Does anyone know of an application that will extract from one's start menu onle those shortcuts which link to executable programs?  I remember I did have such a utility once but cannot find it now.

Thanks,  Jeff

aCkRiTe:
Here is an AutoHotKey script that should do the trick...
(BTW this checks both the current user and all users start menu)



--- ---#SingleInstance Force
#Persistent
#NoEnv
SetBatchLines, -1

SetWorkingDir, %A_StartMenu%
User = %A_StartMenu%
Start:
Loop, *.lnk
{
File = %A_LoopFileFullPath%
FileGetShortcut, %A_LoopFileLongPath%, Var
Loop, %Var%
{
If A_LoopFileExt = exe
Msgbox, %User%`n`n%File% = %Var%
}
}
If User = %A_StartMenuCommon%
ExitApp
SetWorkingDir, %A_StartMenuCommon%
User = %A_StartMenuCommon%
Goto, Start


HTH...

JeffK:
Thank you aCkRiTe.  I have to go to bed now (I am down under).  But I shall run it in the morning.

Jeff

Navigation

[0] Message Index

Go to full version