Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • December 11, 2016, 07:58:02 AM
  • Proudly celebrating 10 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 2603 times)

JeffK

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 363
    • View Profile
    • Donate to Member
Extracting executable program shortcuts from start menu?
« on: May 21, 2007, 08:43:39 AM »
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:41 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:29 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:40 AM »
Thank you aCkRiTe.  I have to go to bed now (I am down under).  But I shall run it in the morning.

Jeff