Can't open files from local folder mapped as a network drive
To emulate a production environment, I’ve mapped the C:\public folder on my laptop as the S: drive. Since the update to Noepad++ 8.1.5, I am no longer able to open files from that location in Notepad++. None of these techniques work:
- Right-click and choose Open in Notepad++ from the context menu
- Double-click a .txt file in File Explorer (Notepad++ is my default for text files)
- From the File menu, the S: drive is not even browsable.
Any ideas on how to fix this?
I just created the following test cases:
net use z: \\remotemachine\path && explorer z:
subst y: c:\path\to\folder && explorer y:
net use x: \\localhost\C$\path\to\folder && explorer x:
Confirmed that Windows Explorer opened for each of those three mapped drives.
Used the explorer for all three of those mapped drives, and did a double-click to open
something.txtor similar into Notepad++ (same works for right-click-and-choose rather than double-click): all three successfully opened, and showed the right X: or Y: or Z: prefix in the full path in Notepad++ title bar. Closed those three files.
Inside Notepad++, use File>Open, and browse to a file in each of the Z:, Y:, and X: drives, and successfully open them.
Sorry, I cannot reproduce.
here’s my ?-menu > Debug Info
Notepad++ v8.1.5 (64-bit) Build time : Sep 26 2021 - 15:23:23 Path : C:\usr\local\apps\notepad++\notepad++.exe Command Line : "C:\usr\local\share\Subversion\nppConfigCheck\Makefile.PL" Admin mode : OFF Local Conf mode : ON Cloud Config : OFF OS Name : Windows 10 Enterprise (64-bit) OS Version : 2009 OS Build : 19042.1237 Current ANSI codepage : 1252 Plugins : AutoSave.dll ComparePlugin.dll ExtSettings.dll MarkdownViewerPlusPlus.dll mimeTools.dll NppConsole.dll NppConverter.dll NppEditorConfig.dll NppExec.dll NppExport.dll NppFTP.dll NppUISpy.dll PreviewHTML.dll PythonScript.dll QuickText.dll RestApiToText.dll TagLEET.dll XMLTools.dll
My guess is that Notepad++ is opened as Administrator for you, because Admin doesn’t see the normal-user’s mapped drives, IIRC. (My I.T. department doesn’t allow me to open Notepad++ as Admin, so I cannot test to confirm, sorry.) It’s really easy to see whether Notepad++ is running as admin by looking at the title bar of the NPP window, or by the ?-menu’s Debug Info entry.
Fascinating! It WAS opening in Admin mode. I fixed that - and it’s working. Thanks SO much for taking the time to explain.