• home
  • forum
  • my
  • kt
  • download
  • Extract the target file from a shortcut file .lnk

    Author: 2007-09-05 17:48:37 From:

    I have a folder containing shortcuts to other folders around the network.
    For each shortcut, I need to follow the "target" to the target folder and then check the "date of last update" of each of the files in the target folder.

    However, I can not find out how to extract the "target" from the shorcut.

    ' use a (microsoft) scripting rumtime


        Set wshShell = CreateObject("WScript.Shell")
         SHORTCUT = "c:\Lotus Notes 6.5.LNK"
        Set oShellLink = wshShell.CreateShortcut(SHORTCUT)
        starget = oShellLink.TargetPath
        MsgBox (starget)

    discuss this topic to forum

    relation tutorial

    No relevant information

    Category

      .NET (8)
      Buttons (3)
      Database Related (7)
      Date and Time (1)
      Development (3)
      Error Handling (2)
      File Manipulation (5)
      Introduction to Visual Basic (9)
      Miscellaneous (2)
      Multimedia (9)
      Networking (9)
      Security (1)
      VB Script (6)

    New

    Hot