Windows 10: Running Only One Instance of Opened File in Notepad

Discus and support Running Only One Instance of Opened File in Notepad in Windows 10 Customization to solve the problem; I need to know how to configure system settings or the registry so that Notepad may not start another instance of a text file when it is already... Discussion in 'Windows 10 Customization' started by BerndStrauss, Jun 8, 2019.

  1. Running Only One Instance of Opened File in Notepad


    I need to know how to configure system settings or the registry so that Notepad may not start another instance of a text file when it is already opened, in order to prevent confusion when I accidentally open the same file, make changes to it, and save it while another instance of the same file is open, with the result that when I make changes in the opened file and save it also, the latter changes overwrite the changes saved from the previous instance of the same file.

    In Microsoft Word, when a file is open, the program does not start a separate instance of it when a user clicks on that file.

    :)
     
    BerndStrauss, Jun 8, 2019
    #1
  2. Bree Win User

    Notepad consuming cpu 40%


    Your screenshot of Task Manager and the notepad.exe properties shows the same size and creation date as in @dalchina's earlier screenshot. So it looks like it is the real notepad that's running.

    But - it isn't running the way it should. In your Task Manager there should be a > to the left of notepad, and clicking on it should open up a list of the Notepad instances that are running, along with the name of the document that's open (or 'Untitled - Notepad' if none).

    Yours doesn't show that (compare it with dalchina's screenshot). Notepad is running - yes, but not the way it's supposed to. It appears to be in the list of background processes, not in the list of Apps where it should be. Could something be trying to run it as a service? Perhaps some malware set this up, but failed to replace the genuine notepad.exe with its counterfeit one?

    As a first step I'd look at the Startup tab in Task Manager for clues.
     
    Bree, Jun 8, 2019
    #2
  3. john barr Win User
    Notepad consuming cpu 40%


    i dont know what the problem is , looks like i need to format C
     
    john barr, Jun 8, 2019
    #3
  4. Cricrazy Win User

    Running Only One Instance of Opened File in Notepad

    Notepad++ one instance per each virtual desktop

    Here is the hack that may work for you.

    1. Two Portable Notepad++ in two separate folders. (It may work with one NPP installation, but two separate Notepad++ seem to be cleaner approach. You may also not need Portable Notepad++, but it may be easier that way.)
    2. Two or more virtual desktops

    1. Open Notepad++ folder on the first Virtual Desktop.
    2. Right click on Notepad++.exe to create a shortcut.
    3. Right click on the newly created shortcut and go to its properties.
    4. Add -multiInst in the target section. (The text is case-sensitive, and there is a space at the beginning.)
    5. Click OK to close the properties.
    6. Double click on the shortcut.
    7. It should open the new instance of Notepad++ in that virtual desktop.
    8. Now switch to another Virtual Desktop. Open its own Notepad++ folder. And follow steps 2-7.
    9. To keep things organized, I kept two folders, VM1 and VM2 with the notepad++ folders in them. (VM being Virtual Machine)

    • This would work as long as the Notepad++ window in a virtual machine was Active, i.e. you had touched it at least once.
    • This is because when you open text file (or your source code files), it opens in the Last Active instance of Notepad++.
    • I am assuming that you are not changing your virtual desktops very frequently, since that would nullify the actual purpose of virtual desktops.

    • You can right click on GIF and open it in new tab to see the steps clearly.
    • GIF shows steps on one virtual desktop, you need to replicate it on the other too.


      Running Only One Instance of Opened File in Notepad [​IMG]


    I hope it is helpful. Thanks.
     
    Cricrazy, Jun 8, 2019
    #4
Thema:

Running Only One Instance of Opened File in Notepad

Loading...
  1. Running Only One Instance of Opened File in Notepad - Similar Threads - Running Instance Opened

  2. .exe files opening in notepad

    in Windows 10 Customization
    .exe files opening in notepad: Hey, I was just trying to download a .exe file the other day, and accidentally clicked an option that made it so that every file I now open is opened with notepad. If there is any way to fix this, I would be very happy. Thanks....
  3. NotePad opens saved files minimized

    in Windows 10 Software and Apps
    NotePad opens saved files minimized: All of my saved notepad txt files open minimized. How can I have them open maximized? Thanks. I've already tried Type notepad in start menu search field> right click it> properties> shortcut tab> for the 'Run' option, select 'Maximized'. Apply> ok. If I make a notepad...
  4. Rar files opening in Notepad

    in Windows 10 Support
    Rar files opening in Notepad: I play games such as Sims 4 and I download custom content. A good portion of the stuff I download are RAR files. I accidentally clicked "Always open with notepad" and I can no longer get it to be just a normal file. I would like to know how to make it not open as a notepad...
  5. Windows 10 file explorer copies settings from one instance to another. Instance settings...

    in Windows 10 Network and Sharing
    Windows 10 file explorer copies settings from one instance to another. Instance settings...: I discovered some while ago that when I change the settings for File Explorer in one instance, the settings are not replicated to a new instance created from that instance on the task bar. I was told in a question that this is normal behaviour. The new instance gets the...
  6. .sif file wants to open with notepad

    in Windows 10 Software and Apps
    .sif file wants to open with notepad: I changed the .sif file open with notepad but this did not save. https://answers.microsoft.com/en-us/windows/forum/all/sif-file-wants-to-open-with-notepad/1b943986-0418-44ad-8f28-c3fc6b47aba7
  7. another instance is running......

    in Windows 10 Customization
    another instance is running......: every time i open my computer, it will pop a message——another instance is running. i don't konw what happened.i wonder how to find the error but there are no approches to search it. and i have not met any questions by now.however it is annoyed for me to see that message....
  8. Can only open 1 instance of Edge browser.

    in Browsers and Email
    Can only open 1 instance of Edge browser.: When I’m on a website with MS Edge browser doing some financial business, why can’t I open another instance of Edge for convenience on another website? Is there a workaround without having to open an instance of IE 11? 113399
  9. 3 locked instances .exe but Unable to run .exe file

    in Windows 10 Support
    3 locked instances .exe but Unable to run .exe file: Hi everyone, I've got this serious problem recently. I can't run some .exe file. This problem happens a month ago, but now that file is able to run now, and now it got other .exe file can't run. Everytime I keep launch the .exe application file, the cursor just keep...
  10. Mysterious Pop-up "You already have one instance running"

    in Windows 10 Support
    Mysterious Pop-up "You already have one instance running": In the last 2 or 3 days I've occasionally been seeing a pop-up that says something like "You already have one instance running". No clue as to what's causing it. Sometimes they come two at a time. It's a little scary. Any ideas what could be causing these little pop-ups?...