• Login
Community
  • Login

Is it posssible to open and edit a Windows shortcut as a file instead of opening the target of the shortcut?

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 213 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    Jim Harris
    last edited by Nov 28, 2024, 1:02 PM

    In some editors it is possible to open a desktop shortcut as a file and view the shortcut’s content instead of opening the shortcut’s target.

    Is this possible in Notepad?

    P 2 Replies Last reply Nov 28, 2024, 3:31 PM Reply Quote 0
    • P
      PeterJones @Jim Harris
      last edited by Nov 28, 2024, 3:31 PM

      @Jim-Harris ,

      Not as far as I know. Notepad++ is honoring the “contract” with the OS by following the link.

      The underlying format of a .lnk shortcut file is a binary format, not a text file, so it doesn’t make much sense to open it with a text editor.

      But if you really want to, you could just change the extension, open it, do your thing to the binary file in a text editor, close it, and change the extension back

      1 Reply Last reply Reply Quote 3
      • P
        PeterJones @Jim Harris
        last edited by Nov 28, 2024, 3:47 PM

        @Jim-Harris ,

        See, for example, this official request and accompanying discussion

        1 Reply Last reply Reply Quote 1
        1 out of 3
        • First post
          1/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors