Created
March 19, 2011 19:36
-
-
Save iraSenthil/877740 to your computer and use it in GitHub Desktop.
LinkParser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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