I appreciate the responses thus far! I must say that I am fairly proud that I just made this applet in powershell.
The intent behind this was to have a list of known control panel applets, and generate shortcuts to them. This is to aid mouser with a planned update to FARR and the way it calls the control panel applets.
I created a file named applets.txt, formatted it as such:
Shortcut (LNK) Title, Path to control.exe, and the argument to call to execute the desired applet
Here is the code for powershell tested on Windows 8 and verified to work:
# Create shortcuts to a known list of control panel applets from XP-Win8
# File format for CSV is Shortcut Name, Path to control.exe (including control.exe in the path), Argument to call this control panel applet
# Sample: Action Center, c:\windows\system32\control.exe, /name Microsoft.ActionCenter
$filename = import-csv "c:\temp\applets.txt"
foreach ($i in $filename)
{
$ShortcutName = $i.Name
$Target = $i.Path
$Argument = $i.Argument
# Set the path to the shortcut LNK file
$FullSPath = "$home\Desktop\Shortcuts\" + $ShortcutName + ".lnk"
### Debug code to display the shortcut file name, target file name (control.exe path) and the executing argument.
# write-host "Shortcut File Name: " $FullSPath " Target File: " $Target " Argument: " $Argument
# pause
### End debug code
# Establish a wscript shell variable
$wshshell = New-Object -ComObject WScript.Shell
# Set the path to the target shortcut file (LNK)
$lnk = $wshshell.CreateShortcut($FullSPath)
# Set the Target path to the executable file itself (control.exe)
$lnk.TargetPath = $Target
# Set the argument (Control panel applet call)
$lnk.Arguments = $i.Argument
# Write the shortcut
$lnk.save()
}
Source file attached for shortcuts