Hi All,
How to get target,description and other details from a link (*.lnk) file. i also need to change those property using VB. can anybody help me by posting the VB code.
pradip
Printable View
Hi All,
How to get target,description and other details from a link (*.lnk) file. i also need to change those property using VB. can anybody help me by posting the VB code.
pradip
Hi,
The MicroSoft Scripting Runtime library has several shortcut (.lnk) functions.
Here's a piece of code I use to update a link to an Excel spreadsheet that's generated every morning for several people.
VB Code:
Dim Wsh As IWshRuntimeLibrary.IWshShell_Class Set Wsh = CreateObject("WScript.Shell") Set sc = Wsh.CreateShortcut(CurDir & "\Desktop\Field Reports " & DateStamp & ".lnk") sc.TargetPath = CurDir & "\Personal\Field Reports " & UID & " " & DateStamp & ".xls" sc.Save Set sc = Nothing
Al.