<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Edit lnk files]]></title><description><![CDATA[<p dir="auto">Why can we no longer edit lnk files?  Even changing the extension to something else still doesn’t let you edit it.<br />
Windows has the annoying habit of changing C:\Program FIles (x86) to %programfiles(x86)% and I want to be able to change it back, why would I want to edit the exe file it’s linked to?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21685/edit-lnk-files</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 11:29:33 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21685.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 18 Aug 2021 02:40:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Edit lnk files on Wed, 18 Aug 2021 12:12:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/james-rae" aria-label="Profile: James-Rae">@<bdi>James-Rae</bdi></a></p>
<blockquote>
<p dir="auto">Why can we no longer edit lnk files?</p>
</blockquote>
<p dir="auto">These files are not text files and Notepad++ is a text file editor.<br />
A design decision was made to no longer allow editing of the .lnk file itself.</p>
<blockquote>
<p dir="auto">why would I want to edit the exe file it’s linked to?</p>
</blockquote>
<p dir="auto">You wouldn’t.<br />
Presumably, if you were opening a .lnk file in Notepad++, it would point to a text file (which Notepad++ would then open for you).</p>
<blockquote>
<p dir="auto">the only way I found to edit a lnk file is to change the name of the file the link is connected to, THEN it opens the lnk file to edit (just click no when it asks to delete the shortcut).</p>
</blockquote>
<p dir="auto">I tried a simple test with this and I found that when I renamed the original file, and then tried opening the .lnk in Notepad++, Windows was smart enough to adjust the link and still find the file, and thus the goal of editing the .lnk file was NOT achieved. :-(</p>
<p dir="auto">Deleting the file but keeping the .lnk to it, then works to get the .lnk file itself open in N++, but that’s hardly useful as the original file is gone.</p>
<p dir="auto">But…it appears that if you move the original file to the Recycle Bin, <em>then</em> pull the .lnk file into N++, answering “Cancel” to this prompt (a Windows prompt, not a N++ prompt):</p>
<p dir="auto"><img src="/assets/uploads/files/1629288663892-6e1c2905-da34-4fa7-92cf-191877ea7797-image.png" alt="6e1c2905-da34-4fa7-92cf-191877ea7797-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">then the goal of editing the .lnk file can be achieved.  Of course, when done editing the .lnk file, get the original file back out of the Recycle Bin.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69036</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69036</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 18 Aug 2021 12:12:53 GMT</pubDate></item><item><title><![CDATA[Reply to Edit lnk files on Wed, 18 Aug 2021 03:00:07 GMT]]></title><description><![CDATA[<p dir="auto">Okay, the only way I found to edit a lnk file is to change the name of the file the link is connected to, THEN it opens the lnk file to edit (just click no when it asks to delete the shortcut).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69029</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69029</guid><dc:creator><![CDATA[James Rae]]></dc:creator><pubDate>Wed, 18 Aug 2021 03:00:07 GMT</pubDate></item></channel></rss>