Notepad command line to open file and find text ?


  1. Posts : 30
    Windows 10
       #1

    Notepad command line to open file and find text ?


    Hello & Thanks ,
    I would like to call Notepad from another program
    sending to it a command line
    to open Filename and FIND a specific text .
    Plz , How can this be done ?

    Thanks
      My Computer


  2. Posts : 456
    Windows 10
       #2

    You want that line is shown in notepad or in the command prompt?
      My Computer


  3. Posts : 1,255
    Windows 10 Pro
       #3

    I don't believe Notepad has that capability. Notepad is a very simple editor with few options. Command line options for a program must be explicitly designed in.
      My Computer


  4. Posts : 30
    Windows 10
    Thread Starter
       #4

    ricardobohner :
    I want notepad to open up at the FOUND line .
    Thx


    - - - Updated - - -

    Any suggestions for 'under 2mb' freeware alternatives to notepad ?
    Thanks
      My Computer


  5. Posts : 4,791
    Windows 11 Pro 64 Bit 22H2
       #5

    In a Elevated Command Prompt type

    File Name> 0 & notepad 0

    (ie) cdedit /enum > 0 & notepad 0
      My Computer


  6. Posts : 30
    Windows 10
    Thread Starter
       #6

    Thnks spunk ,
    I need non-elevated
    and to open file in notepad or other small editor
    and the lind FOUND .
    Thanks
      My Computer


  7. Posts : 4,791
    Windows 11 Pro 64 Bit 22H2
       #7

    That cannot be done in a standard Command Prompt, it would need to be Elevated Command Prompt (As Admin).
    As written, Notepad would open at the Found line.
      My Computer


  8. Posts : 30
    Windows 10
    Thread Starter
       #8

    spunk ,
    Got it ,
    Thanks

    I checked out Ted too ,
    but I need launch program with 'command line' FIND capabilities .
    I am updating my app here:
    clipLog/clipFind - The Portable Freeware Collection
    And want to make it into a FULL Pim .

    Thanks
    Last edited by vmars316; 23 May 2019 at 17:35.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:20.
Find Us




Windows 10 Forums