Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2010
    Posts
    78

    How to get the target of a shortcut

    I want to read the Target of a shortcut. Is it possible?


  2. #2
    Join Date
    Jul 2012
    Posts
    149
    Code:
    --Assumes dll is in project root and Firefox is installed and Windows root is C:
    function GetLinkInfo(A,l)
     return DLL.CallFunction("Short.dll","GetLnkInfo","\""..A.."\","..l,2,1)
    end
    
    A0 = GetLinkInfo( "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Mozilla Firefox.lnk", 0 )
    A1 = GetLinkInfo( "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Mozilla Firefox.lnk", 1 )
    A2 = GetLinkInfo( "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Mozilla Firefox.lnk", 2 )
    A3 = GetLinkInfo( "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Mozilla Firefox.lnk", 3 )
    A4 = GetLinkInfo( "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Mozilla Firefox.lnk", 4 )
    A5 = GetLinkInfo( "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Mozilla Firefox.lnk", 5 )
    
    Dialog.Message("Short-cut:", "0 = "..A0.."\n1 = "..A1.."\n2 = "..A2.."\n3 = "..A3.."\n4 = "..A4.."\n5 = "..A5)
    http://www.datafilehost.com/download-2a0799f6.html

    This was from someone posting in setup factory but it works here to and is fairly buletproof.

  3. #3
    Join Date
    Jul 2012
    Posts
    149

  4. #4
    Join Date
    Jul 2010
    Posts
    78
    Thanks a lot Shrek

  5. #5
    Join Date
    Jul 2010
    Posts
    78
    Can you tell me how to use this ?

    It gives me Cancel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts