topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday December 14, 2024, 7:00 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Extracting executable program shortcuts from start menu?  (Read 4812 times)

JeffK

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 363
    • View Profile
    • Donate to Member
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
  • **
  • default avatar
  • Posts: 21
    • View Profile
    • Donate to Member
Re: Extracting executable program shortcuts from start menu?
« Reply #1 on: May 21, 2007, 10:13 AM »
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...
« Last Edit: May 21, 2007, 10:18 AM by aCkRiTe »

JeffK

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

Jeff