Edit.com should also work From: James Rankin [mailto:[email protected]] Sent: Tuesday, 6 September 2011 6:30 PM To: NT System Admin Issues Subject: Re: Checking shortcut properties
Little follow-up to this, if anyone's interested....you can also pull the comments out of the shortcut file using the SysInternals tool strings, but it's a lot blunter than the VB method suggested. Cheers, On 5 September 2011 10:16, James Rankin <[email protected]<mailto:[email protected]>> wrote: Thanks Tim. That Description line returns me the comment nicely! I should be up and running pretty soon with this. Cheers, On 2 September 2011 16:18, Tim Evans <[email protected]<mailto:[email protected]>> wrote: Does this help? ' VBScript Set Shell = CreateObject("WScript.Shell") DesktopPath = Shell.SpecialFolders("Desktop") Set link = Shell.CreateShortcut(DesktopPath & "\Test.lnk") wscript.echo link.Arguments wscript.echo link.Description wscript.echo link.HotKey wscript.echo link.IconLocation wscript.echo link.TargetPath wscript.echo link.WindowStyle wscript.echo link.WorkingDirectory ...Tim From: James Rankin [mailto:[email protected]<mailto:[email protected]>] Sent: Friday, September 02, 2011 8:05 AM To: NT System Admin Issues Subject: Checking shortcut properties Does anyone know of any way I could check for a comment in a shortcut (*.lnk) file, either from a command prompt or through some sort of script? I have some shortcuts I want to remove at logoff from user profiles but the only way of identifying them from user-created shortcuts is by the comment field (shown highlighted below). Google-fu seems to yield very little (although it is getting late on a Friday afternoon, when Google powers are traditionally weak). [c1122.png] TIA, ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected] with the body: unsubscribe ntsysadmin
<<inline: image001.png>>
