Skip to content

Instantly share code, notes, and snippets.

@iraSenthil
Created March 19, 2011 19:36
Show Gist options
  • Save iraSenthil/877740 to your computer and use it in GitHub Desktop.
Save iraSenthil/877740 to your computer and use it in GitHub Desktop.
LinkParser
$WshShell = New-Object -ComObject Wscript.Shell
$items = Get-ChildItem
foreach($file in $items)
{
$shortcut = $WshShell.CreateShortcut($file.FullName)
#::--AHK::D:\Tools\AutoHotKey
"::" + "--" + $file.Name.Replace($file.Extension,"") + "::" + $shortcut.TargetPath
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment