Dec 23, 2015 #1 ctkmak Technical User Joined Jan 3, 2001 Messages 1 Location HK Using Powershell, I can only able retrieve the shortcut standard file, but want to know how to retrieve the shortcut comment field ??
Using Powershell, I can only able retrieve the shortcut standard file, but want to know how to retrieve the shortcut comment field ??
Jan 12, 2016 #2 blister911 MIS Joined Aug 7, 2006 Messages 578 Location US I found this, it might help (change the $path_to_sc variable to point to your shortcut) Code: $WshShell = new-object -comobject "WScript.Shell" $path_to_sc = <path to your shortcut> $sc_Obj = get-item -path $path_to_sc $sc_values = $WshShell.CreateShortcut($sc_Obj) $comment = $sc_values.description write-host $comment Light travels faster than sound. That's why some people appear bright until you hear them speak. Upvote 0 Downvote
I found this, it might help (change the $path_to_sc variable to point to your shortcut) Code: $WshShell = new-object -comobject "WScript.Shell" $path_to_sc = <path to your shortcut> $sc_Obj = get-item -path $path_to_sc $sc_values = $WshShell.CreateShortcut($sc_Obj) $comment = $sc_values.description write-host $comment Light travels faster than sound. That's why some people appear bright until you hear them speak.
Jan 12, 2016 #3 blister911 MIS Joined Aug 7, 2006 Messages 578 Location US Sorry, I forgot to give credit to where I found it: WWOIT - Wayne's World of IT Light travels faster than sound. That's why some people appear bright until you hear them speak. Upvote 0 Downvote
Sorry, I forgot to give credit to where I found it: WWOIT - Wayne's World of IT Light travels faster than sound. That's why some people appear bright until you hear them speak.