acantor Posted March 6, 2021 Report Share Posted March 6, 2021 The Windows 10 "File Explorer" (aka "Windows Explorer" in earlier version of Windows) is a file manager application. It is used to navigate around a computer; open, delete, and rename files and folders; and create files and folders. (It has other uses, but we don't need to consider these now.) In the world of Windows hotkeys, Ctrl + N is usually reserved for creating something new. ("N" stands for "New.") For example, in Microsoft Word, pressing Ctrl + N creates a new document. In Outlook, Ctrl + N creates a new email message. In browsers, Ctrl + N opens a new web page. In File Explorer, Ctrl + N creates a new instance of the current folder. This is something I rarely do. For me, a better use of Ctrl + N would be to create a new folder... or a new Word document... or a new text file. The Challenge, Part 1: Create a macro triggered by Ctrl + N that is recognized only in File Explorer. The script either creates a new folder or a new document. The Challenge, Part 2: The macro offers a choice of whether to create a new file or a new folder. Your script should work regardless of how a user has configured File Explorer. It should work equally well when the Ribbon, Navigation Pane, Preview Pane, and Details Pane are hidden or visible. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.