1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Open properties for .LNK?

Discussion in 'Support' started by vefatica, Oct 20, 2012.

  1. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,938
    Likes Received:
    30
    Is there a TCC built-in way to open the properties dialog for a shortcut ... could it be done with @WINAPI[]?
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,300
    Likes Received:
    39
    I don't think so, but you can do it with SHELLEX in SysUtils.... :-D
     
  3. Rod Savard

    Joined:
    May 26, 2008
    Messages:
    481
    Likes Received:
    3
    This seemed to work for me:

    Code:
    @winapi[shell32.dll, ShellExecute, NULL, "properties", "Test.lnk", NULL, NULL, 1]
     
  4. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,300
    Likes Received:
    39
    Works here too. Sweet!
     
  5. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,938
    Likes Received:
    30
    The @WINAPI one worked on a LNK. On an EXE it failed, returning 31 - a device attached to the system is not functioning. (???) It fails similarly on a drive or folder.

    Thanks Charles for reminding me about SHELLEX. I must have known at one time that it could open "Properties" because it's help mentions that fact. It works for files of various types as well as drives and folders.

    I did find code for an old (also SysUtils) plugin "PROPS" ... most of it I found on the web ... absolutely horrendous ... does everything with bare hands and adds 6KB to the SysUtils binary! I think I'll write a new PROPS that uses SHELLEX ... ought to be just a handful of lines.
     
  6. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,938
    Likes Received:
    30
    And I discovered that, like START, SHELLEX works with objects specified as "shell:object". For example,
    Code:
    v:\> shellex shell:controlpanelfolder
     
    v:\> shellex /c /v properties shell:desktop
     
  7. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    Sorry, Vince, your first line is displayed with an emoticon in what may be the word "shell:object" ... XenForo [un]help does not show any means to display the true text, not its interpretation as smilies...
     
  8. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    Yeah, my own message now displays the same smilie, replacing the sequence ":" "o". Now I know your message had "shell:" followed by "object" but was misinterpreted by XenForo and displays only the smilie instead...
     
  9. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,938
    Likes Received:
    30
    Just ducky! Give me emoticons! To hell with accurate communication.
     
  10. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,854
    Likes Received:
    83
    Use code /code.

    Or, go to your Preferences and turn off the RTF editor.

    Or, go to your Preferences and check "Hide Smilies".
     
  11. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,938
    Likes Received:
    30
    Did that ... save ... logoff ... shut down browser ... reconnect ... logon manually ... the smilies are still there. :-)
     
  12. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,938
    Likes Received:
    30
    Three visits later ... I'm not seeing smilies now.
     
  13. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    XenForo forum suggestion: - instead of Rex'
    Code:
    
    
    . Both depend on the poster knowing in advance what character sequences may be considered as emoticons (a continually expanding world).

    I just checked "hide smilies" in my preferences. As Vince noted, it has not taken effect. I'll post this, and close the Firefox tab, and reopen th thread in a new tab to see and report what happens.
     
  14. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,520
    Likes Received:
    4
    OK, I just reopened this thread in a new tab of the same old instance of Firefox 16.0.1, and now the original text is properly legible and not converted to an emoticon. BTW, in another tab of the same Firefox instance I remained logged into the Forum. Closing just the single tab and reopening it was sufficient.
     
  15. mbmark

    Joined:
    Oct 20, 2009
    Messages:
    3
    Likes Received:
    0
    Where can I get SHELLEX?
     
  16. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,938
    Likes Received:
    30
  17. mbmark

    Joined:
    Oct 20, 2009
    Messages:
    3
    Likes Received:
    0

Share This Page