<?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[Running as admin doesn't load previously open files]]></title><description><![CDATA[<p dir="auto"><strong>Background</strong><br />
Notepad++ 7.5.9, running on Windows 10 Enterprise Oct 2018 (1809, Build 17763.168), connected to a domain, configured to allow multiple instances to run. Logged in with a standard non-admin account.</p>
<p dir="auto"><strong>Issue</strong><br />
To workaround the issue of problems when Notepad++ is installed by an admin account but used from a standard account, I always keep 2 instances open now; 1 opened with my standard account and another run as admin using my admin account.</p>
<p dir="auto">The problem is whenever I have to restart or otherwise close the admin instance of Notepad++ the next time I start is as admin using the same account when Windows prompts for admin credentials it does not open the files I last had open despite being configured to do so. The instance I open with my standard login remembers and reopens files just fine.</p>
<p dir="auto">For example I often edit the \system32\drivers\etc\hosts file so I can assign a URL to a site hosted on my local IIS and use that in the browser. However after a restart that hosts file will not be open despite using the same admin account to run Notepad++ as admin. Shouldn’t it be using the user profile of the account I ran it as?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16784/running-as-admin-doesn-t-load-previously-open-files</link><generator>RSS for Node</generator><lastBuildDate>Wed, 07 Oct 2026 09:19:01 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16784.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 Dec 2018 09:25:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Running as admin doesn't load previously open files on Thu, 13 Dec 2018 00:29:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/meta-chuh" aria-label="Profile: Meta-Chuh">@<bdi>Meta-Chuh</bdi></a></p>
<p dir="auto">that is better than my suggestion as it allows to have full session functionality aka unsaved files for both accounts.<br />
Good one :-)</p>
<p dir="auto">Eko</p>
]]></description><link>https://community.notepad-plus-plus.org/post/37451</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/37451</guid><dc:creator><![CDATA[Eko palypse]]></dc:creator><pubDate>Thu, 13 Dec 2018 00:29:00 GMT</pubDate></item><item><title><![CDATA[Reply to Running as admin doesn't load previously open files on Thu, 13 Dec 2018 00:25:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peter-row" aria-label="Profile: Peter-Row">@<bdi>Peter-Row</bdi></a></p>
<p dir="auto">you could also use a single portable version that resides in a folder you can put anywhere (except inside %programfiles% or  %programfilesx86%)</p>
<p dir="auto">this way you could open the same session files, regardless if this portable notepad++.exe is started as a restricted user or as an administrator (elevated).<br />
(only prerequisite is that both users have the same available paths and at least read permission to access all the files listed within this session … files without read permissions will not be reopened and purged from the session list)</p>
<p dir="auto">basic explanation:<br />
the portable np++ version confines all internal data including sessions to it’s own folder, so they are persistent to all users that have permission to read and write to this portable np++ folder.<br />
this behaviour is triggered by the presence of an empty DoLocalConf.xml file.<br />
the installed version on the other hand will write and read specific np++ internal data and settings inside different locations within the %homepath% of the user account that np++ has been started with</p>
<p dir="auto">feel free to download and try the portable np++ version from this location:<br />
<a href="https://notepad-plus-plus.org/repository/7.x/7.6/npp.7.6.bin.zip" rel="nofollow ugc">https://notepad-plus-plus.org/repository/7.x/7.6/npp.7.6.bin.zip</a><br />
(it will not interfere with your current installation)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/37450</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/37450</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Thu, 13 Dec 2018 00:25:25 GMT</pubDate></item><item><title><![CDATA[Reply to Running as admin doesn't load previously open files on Wed, 12 Dec 2018 23:21:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peter-row" aria-label="Profile: Peter-Row">@<bdi>Peter-Row</bdi></a></p>
<p dir="auto">sorry, but as far as I understand, the last instance is triggering writing the session information only.<br />
So the only workaround I see at the moment is to create an independent shortcut and using a session file<br />
and every time before you close this instance you want to save the session explicitly.</p>
<p dir="auto">Eko</p>
]]></description><link>https://community.notepad-plus-plus.org/post/37446</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/37446</guid><dc:creator><![CDATA[Eko palypse]]></dc:creator><pubDate>Wed, 12 Dec 2018 23:21:00 GMT</pubDate></item></channel></rss>