<?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[build 7.6 "open with..." association does not open files with spaces in filenames]]></title><description><![CDATA[<p dir="auto">Builds up to an including 7.5.8 could be added to the Windows context menu to open any file. Here is the .reg file which allows this:</p>
<hr />
<p dir="auto">Windows Registry Editor Version 5.00</p>
<p dir="auto">[HKEY_CLASSES_ROOT*\shell\Notepad++]<br />
@=“Edit with &amp;Notepad++”<br />
“Icon”=“C:\Portable\- Linked\Notepad++\notepad++.exe,0”</p>
<p dir="auto">[HKEY_CLASSES_ROOT*\shell\Notepad++\Command]<br />
@=“C:\Portable\- Linked\Notepad++\Notepad++.exe %L”</p>
<hr />
<p dir="auto">Build 7.6 will NOT open files with spaces in their filenames.</p>
<p dir="auto">Why is this and what can be done to fix the problem?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16687/build-7-6-open-with-association-does-not-open-files-with-spaces-in-filenames</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Sep 2026 22:35:58 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16687.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 Nov 2018 03:30:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to build 7.6 "open with..." association does not open files with spaces in filenames on Thu, 29 Nov 2018 14:29:48 GMT]]></title><description><![CDATA[<p dir="auto"><strong>extra</strong>: in case you’re curious, since the OP used <code>%L</code> but my example used <code>%1</code>: see <a href="https://notepad-plus-plus.org/community/topic/16516/notepad-7-5-9-x32-file-association-on-win8-1x64-broken/4" rel="nofollow ugc">this post</a> for a link describing %1 vs %L in registry entries.  In short: it doesn’t really matter in this case, because the difference is only significant on old 16bit windows OS (like Win3.11).  On modern Windows, <code>%L</code> and <code>%1</code> are interchangeable in the registry associations.  (Only <code>%1</code> works in <code>.bat</code>/<code>.cmd</code> files, though, which is why I’ve gotten used to using <code>%1</code>.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36953</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36953</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 29 Nov 2018 14:29:48 GMT</pubDate></item><item><title><![CDATA[Reply to build 7.6 "open with..." association does not open files with spaces in filenames on Thu, 29 Nov 2018 14:26:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrsimurq" aria-label="Profile: MrSimurq">@<bdi>MrSimurq</bdi></a> ,</p>
<p dir="auto">Sorry, no – I had just copy/edit/pasted what was originally posted by <a class="plugin-mentions-user plugin-mentions-a" href="/user/fredthompsonii" aria-label="Profile: FredThompsonII">@<bdi>FredThompsonII</bdi></a> , and didn’t notice that it was missing a <code>\</code> before the <code>*</code>.  For your example, I believe it should be:</p>
<pre><code>Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\Notepad++]
@="Edit with &amp;Notepad++"
"Icon"="C:\\Notepad++\\notepad++.exe,0"

[HKEY_CLASSES_ROOT\*\shell\Notepad++\command]
@="C:\\Notepad++\\Notepad++.exe \"%L\""
</code></pre>
<p dir="auto">-----<br />
<strong>Aside</strong>: I believe what happened is that because the original poster did not indent the <code>.reg</code> text four spaces in the forum, the forum software converted the quotes to “smart quotes” (which I noticed and fixed) and also converted the <code>\*</code> to a plain <code>*</code> – it interpreted it as escaping the <code>*</code> character (which is used to start/stop emphasis and bold) instead of as wanting a literal <code>\*</code>.   It also probably changed the <code>\\</code> in the paths to <code>\</code>, and possibly converted <code>\"</code> to just <code>“</code>.  That’s why Markdown provides the indenting feature for code blocks – to tell Markdown to treat the text as purely literal.  I believe I have correctly edited your example to include all the correct escaping and quotes.</p>
<p dir="auto">In case it’s not, here’s my example from my registry: it’s for the “txtfile” entry, rather than the “*” entry, but it shows the syntax properly (because I know this association works):</p>
<pre><code>Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\txtfile\shell\Notepad++]
@="Notepad++"

[HKEY_CLASSES_ROOT\txtfile\shell\Notepad++\command]
@="C:\\Program Files (x86)\\Notepad++\\notepad++.exe \"%1\""
</code></pre>
<p dir="auto">-----<br />
<strong>edit</strong>: <strong>note</strong>: see <a href="https://notepad-plus-plus.org/community/topic/16516/notepad-7-5-9-x32-file-association-on-win8-1x64-broken/4" rel="nofollow ugc">this post</a> for a link describing %1 vs %L in registry entries.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36950</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36950</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 29 Nov 2018 14:26:03 GMT</pubDate></item><item><title><![CDATA[Reply to build 7.6 "open with..." association does not open files with spaces in filenames on Thu, 29 Nov 2018 10:39:44 GMT]]></title><description><![CDATA[<p dir="auto">Are you sure the registry code above is correctly spelled? I tried this (adjusted for my Notepad++ location) but I get a registry error “This file doesn’t have associated program…”</p>
<p dir="auto">Windows Registry Editor Version 5.00</p>
<p dir="auto">[HKEY_CLASSES_ROOT*\shell\Notepad++]<br />
@=“Edit with &amp;Notepad++”<br />
“Icon”=“C:\Notepad++\notepad++.exe,0”</p>
<p dir="auto">[HKEY_CLASSES_ROOT*\shell\Notepad++\Command]<br />
@=“C:\Notepad++\Notepad++.exe "%L"”</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36924</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36924</guid><dc:creator><![CDATA[MrSimurq]]></dc:creator><pubDate>Thu, 29 Nov 2018 10:39:44 GMT</pubDate></item><item><title><![CDATA[Reply to build 7.6 "open with..." association does not open files with spaces in filenames on Mon, 26 Nov 2018 20:39:59 GMT]]></title><description><![CDATA[<p dir="auto">example for the why = otherwise,</p>
<pre><code>notepad++.exe a file here.txt
</code></pre>
<p dir="auto">would be ambiguous as to whether it’s opening one file called <code>a file here.txt</code> with spaces in the name, or whether it’s opening three files – one called <code>a</code>, one called <code>file</code>, and one called <code>here.txt</code>.</p>
<p dir="auto">If all four files existed, it would be impossible to grok your intention.</p>
<p dir="auto">Now, it requires</p>
<pre><code>notepad++.exe "a file here.txt"
</code></pre>
<p dir="auto">to tell it that it’s one filename, and will assume multiple filenames if there aren’t quotes around it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36812</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36812</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 26 Nov 2018 20:39:59 GMT</pubDate></item><item><title><![CDATA[Reply to build 7.6 "open with..." association does not open files with spaces in filenames on Mon, 26 Nov 2018 20:35:38 GMT]]></title><description><![CDATA[<p dir="auto">Fix = put quotes around <code>%L</code> in the registry:</p>
<pre><code>Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT*\shell\Notepad++]
@="Edit with &amp;Notepad++"
"Icon"="C:\Portable\- Linked\Notepad++\notepad++.exe,0"

[HKEY_CLASSES_ROOT*\shell\Notepad++\Command]
@="C:\Portable\- Linked\Notepad++\Notepad++.exe \"%L\""
</code></pre>
<p dir="auto">The “why” = the author changed handling of command-line arguments to be more consistent with other windows programs, where filenames with spaces on the command line <em>must</em> be surrounded by quotes to be interpreted as a single filename.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/36811</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/36811</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 26 Nov 2018 20:35:38 GMT</pubDate></item></channel></rss>