Windows 10: When you double click a text file, notepad in windows 11 opened the file twice

Discus and support When you double click a text file, notepad in windows 11 opened the file twice in Windows 10 Software and Apps to solve the problem; Notepad version tested: 11.2309.28.0In the new Notepad of windows 11, if the setting of notepad looks like this: "When Notepad starts" --> "Open... Discussion in 'Windows 10 Software and Apps' started by landpage, Nov 27, 2023.

  1. landpage Win User

    When you double click a text file, notepad in windows 11 opened the file twice


    Notepad version tested: 11.2309.28.0In the new Notepad of windows 11, if the setting of notepad looks like this: "When Notepad starts" --> "Open content from the previous session", if you double click a text file, you will see the same file is opened twice.This looks like a bug. When you double click a file, the command line parameters will be passed to notepad. In such case, it should not open two Notepad windows.When user double clicks a file, and find two notepad window appeared, it is strange. It is quite different from traditional notepad.Workaround: In notepad setting, choose "When No

    :)
     
    landpage, Nov 27, 2023
    #1
  2. oily_17 Win User

    Batch Files Knowledge Base

    Don't use batch files very much but one I find useful is for creating a list of files in a directory.
    Just copy the text below into Notepad and save as Filelist.bat

    dir /a /-p /o:gen >filelist.txt

    When you run it from a folder it will create a Filelist.txt file,in the same folder, that lists all the files in that folder.Useful when you are too lazy to type all the files out yourself.
     
    oily_17, Nov 27, 2023
    #2
  3. Batch file

    hello,

    i am not so good in creating batch files i need some help in creating one.

    in the following path

    C:\Windows\System32\spool\PRINTERS

    there is a .SHD and .SPL file created when prints launched

    i need a batch file to open the .SPL in notepad first then on closing the notepad opened, all the files .SHD and .SPL are permanently deleted

    any help please

    code to open the notepad is as below

    start notepad "C:\windows\system32\spool\printers\FP00002.SPL"

    the file is opened but there are unwanted characters that appear as well as below


    When you double click a text file, notepad in windows 11 opened the file twice upload_2014-6-19_10-43-2-png.png
     
    Sandeep Bhugoo, Nov 27, 2023
    #3
  4. When you double click a text file, notepad in windows 11 opened the file twice

    Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, Nov 27, 2023
    #4
Thema:

When you double click a text file, notepad in windows 11 opened the file twice

Loading...
  1. When you double click a text file, notepad in windows 11 opened the file twice - Similar Threads - double click text

  2. Cursor blinks twice when I click on a file or folder. When I double-click a file or folder,...

    in Windows 10 Network and Sharing
    Cursor blinks twice when I click on a file or folder. When I double-click a file or folder,...: Windows 10 up to date... https://answers.microsoft.com/en-us/windows/forum/all/cursor-blinks-twice-when-i-click-on-a-file-or/5425c9cf-ca26-4a42-a83d-0cff2dab9eb7
  3. Cursor blinks twice when I click on a file or folder. When I double-click a file or folder,...

    in Windows 10 Gaming
    Cursor blinks twice when I click on a file or folder. When I double-click a file or folder,...: Windows 10 up to date... https://answers.microsoft.com/en-us/windows/forum/all/cursor-blinks-twice-when-i-click-on-a-file-or/5425c9cf-ca26-4a42-a83d-0cff2dab9eb7
  4. Cursor blinks twice when I click on a file or folder. When I double-click a file or folder,...

    in Windows 10 Software and Apps
    Cursor blinks twice when I click on a file or folder. When I double-click a file or folder,...: Windows 10 up to date... https://answers.microsoft.com/en-us/windows/forum/all/cursor-blinks-twice-when-i-click-on-a-file-or/5425c9cf-ca26-4a42-a83d-0cff2dab9eb7
  5. When you double click a text file, notepad in windows 11 opened the file twice

    in Windows 10 Gaming
    When you double click a text file, notepad in windows 11 opened the file twice: Notepad version tested: 11.2309.28.0In the new Notepad of windows 11, if the setting of notepad looks like this: "When Notepad starts" --> "Open content from the previous session", if you double click a text file, you will see the same file is opened twice.This looks like a...
  6. Files / text are deleted when I left click / double left click

    in Windows 10 Gaming
    Files / text are deleted when I left click / double left click: A few weeks back my files began being deleted when I left click on their icons in my desktop / file explorer.Some times all files under a folder are deleted, if I click in the file list part of the file explorer. When that happens, if I click on the cancel button my click is...
  7. Files / text are deleted when I left click / double left click

    in Windows 10 Software and Apps
    Files / text are deleted when I left click / double left click: A few weeks back my files began being deleted when I left click on their icons in my desktop / file explorer.Some times all files under a folder are deleted, if I click in the file list part of the file explorer. When that happens, if I click on the cancel button my click is...
  8. Using double-click to open files

    in Windows 10 BSOD Crashes and Debugging
    Using double-click to open files: Recently, I can no longer use double-click to open files either from desktop icons or within sub-files. I have to left click to select, then right-click, then move cursor to "open, then left-click open. This is a great degradation in performance. Will this be reversed or...
  9. Notepad slow to open text files

    in Windows 10 Network and Sharing
    Notepad slow to open text files: We have some users that have discovered that notepad is slow to open when logged into the domain compared to when you log in locally. We have been able to duplicate the problem but have not found a fix. We have created two text files with random text with the sizes of...
  10. Double-clicking opens folders but not files

    in Windows 10 Support
    Double-clicking opens folders but not files: When I double-click on a folder, the folder opens. Good. But when I double-click on a file or document for the first time, it doesn't open (i.e., it doesn't launch the application to read that file). Instead, the filename is shaded and there's a box around the filename as if...