DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Extracting executable program shortcuts from start menu?  (Read 6,804 times)

JeffK

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 363
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

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 21
Re: Extracting executable program shortcuts from start menu?
« Reply #1 on: May 21, 2007, 03:13 PM »
Here is an AutoHotKey script that should do the trick...
(BTW this checks both the current user and all users start menu)


Code
#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...
« Last Edit: May 21, 2007, 03:18 PM by aCkRiTe »

JeffK

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 363
Re: Extracting executable program shortcuts from start menu?
« Reply #2 on: May 21, 2007, 03:15 PM »
Thank you aCkRiTe.  I have to go to bed now (I am down under).  But I shall run it in the morning.

Jeff

Original address: https://www.donationcoder.com/forum/index.php?topic=8623.0