senpost
3/19/2011 - 7:36 PM

LinkParser

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    
}