Menu

Command Line Wildcards?

agressiv
2007-02-05
2012-11-13
  • agressiv

    agressiv - 2007-02-05

    Any chance we can do notepad++ d:\text\*.txt to open all text files in a particular folder?

     
    • pshute

      pshute - 2007-02-09

      You could try something like:
      for %i in (d:\text\*.txt) do notepad++ d:\text\%i

       
      • Nobody/Anonymous

        I'm rather surprised that this is the "solution" being given.  It works, but why doesn't notepad++ take wildcards?  That's been around probably since DOS 2.x and that was over 20 years ago.  If I remember right, I had wildcard access under Unix back in the mid 80's.

        I'm giving my vote to this as a feature that would be highly requested to make NP++ even better.  Right now I don't use it because of this lack - it's a swell editor, but I didn't realize how often I used it until I didn't have it.

         
        • pshute

          pshute - 2008-01-02

          I was very surprised to see my name on that solution, until I realised I'd written it a year ago.  Glad to hear that it works.

          I agree that it would seem to be a simple feature to add.  You can only ask, and hope Don will do it, or do it yourself - it's open source.

          Personally, I've never needed that feature.  I use Ztree to open files, and it allows me to tag as many as I like and open them all.  Ztree is a file manager like the old Xtree.  See http://www.ztree.com if you're interested in trying it.  If you never used Xtree, then remember that this is a text based program, with shortcut keys that were invented before Windows, although it's still very actively being developed.  It does things very differently to Explorer, so take it slowly when you start, if you do.

           
        • Nobody/Anonymous

          > Right now I don't use it because of this lac

          That's your choice. It's either doing a little extra thing and be content about it, or throw it away because it lacks one convenience.

          > - it's a swell editor, but I didn't realize how often I used it until I didn't have it.

          Oh really, you DID throw it away? LOL.
          Perhaps you should rethink your action and pick the other choice, then.