I wanted to get a list of all of the short cut keys that I have assigned to programs in the start menu and the desktop. Windows explorer and X2 don't give you an easy way to do this (you have to look at the properties of each shortcut one by one).
There are some utilities out there that will do this
http://www.pcmag.com/article2/0%2C1759% ... 2%2C00.asp but I wanted to see if I could accomplish the same thing using X2 and a little Windows scripting. Here's how to do it:
Create a script file (ShowHotKeys.vbs):
Code: Select all
set WshShell = WScript.CreateObject("WScript.Shell")
set StdIn = WScript.StdIn
set StdOut = WScript.StdOut
do while not StdIn.AtEndOfStream
str = StdIn.ReadLine
StdOut.Write str & vbTab
set oShellLink = WshShell.CreateShortcut(str)
StdOut.WriteLine oShellLink.Hotkey
Loop
Using X2, highlight the start menu folder under C:\Documents and Settings\All Users, hit Shift-Enter to recursively send start menu files to the scrap window. Do the same for your personal start menu files and for the desktop files (except use Ctrl-Shift-Enter to send the files to the existing scrap window). Go to the scrap window, sort by file type. Remove (Del) any files that are not of type lnk. Hit Ctrl-A then Alt-C to copy the full paths of all files in the scrap window to the clipboard. Open editor2 and paste the file names into a text file called StartMenuFiles.txt. Open a console window (F10, dir, enter). Then enter the following command:
Code: Select all
cscript /NoLogo ShowHotKeys.vbs < StartMenuFiles.txt >Output.txt
Use Excel to view and sort the tab delimited list (Output.txt).