thanks for your response
There is also another restriction: you get the error I linked if you have set NPP to run in administrator mode. Can this be fixed?
i don’t know if it can be fixed from within the notepad++ code, as it is a windows internal, partial isolation between both user account with administrator rights and elevated administrator policies, but i do have a workaround that worked on all scenarios (at least so far):your logged in user account has to have administrator privileges. you must disable uac for this user
(once uac is disabled, the whole environment and permissions of the logged in user account is used, even for elevated tasks)
to disable uac in windows 10:
hit the windows icon and type uac in the search field as seen at the screenshot below:
then open up Change User Account Control settings and slide the slider down to the bottom as seen at the screenshot:
then hit ok and reboot your machine.
after reboot, please open up notepad++ and try everything that has not worked before.
(on windows 7 the uac slider is found by pressing the button “Change User Account Control settings” in your normal user accounts control panel)
note: notepad++ will now always run in [Administrator] mode, regardless of the compatibility settings you’ve set to notepad++.exe, but with the difference that all elevated tasks will run using and sharing the current user’s environment.
even drag and drop as well as user level mapped network drives will work.
As to the necessity to use elevated privileges: I use NppExec to run commands, applications, utilities, some of which require it.
this should also be solved by disabling uac together with using an account with local administrator rights.
hope this is of help to you.
please don’t hesitate to share your testing experience.