How to open many files?

con
2014-01-10
2014-01-10
  • con
    con
    2014-01-10

    Attempting to open a large number of files results in an error:


    Notepad++ Extension: Error

    Error in CreateProcess (206): Is this command correct?"C:\Program Files (x86)\Notepad++\notepad++.exe" "[file]" "[another file]" "[etc.]"

    OK

    Even if OK is pressed, the files still don't open.

    Sometimes I want to use the 'Replace All in All Opened Documents' feature to make numerous mass replacements in hundreds or thousands of files, but evidently need to split it into groups of only 150-250 files or so to avoid that error.

    Any fixes?

     
    Last edit: con 2014-01-10
  • con
    con
    2014-01-10

    Fixed: all of the files can be opened into a session if the actual opening is done in groups that aren't large enough to cause that error.

     
    Last edit: con 2014-01-10
  • This is a bug in the N++ shell extension (Windows has a limit on how large a command-line can be). It is fixed in this patch:

    https://sourceforge.net/p/notepad-plus/patches/550/

    I personally think it's easier to use the the "Replace in files" function to do such large search-and-replace operations (press Ctrl-F, choose "Find in files" tab, click "Replace in files" button).