autcomplete in cmd.exe console


  1. apb
    Posts : 94
    win 7 64bit
       #1

    autcomplete in cmd.exe console


    For the win 10 20h2 19042.804 command console (cmd.exe). While autocomplete currently works separately for dir or file in current dir, I would like TAB to traverse my entire PATH to find a file, similarly to 'where'. Is that possible?

    Thanks.

    --peter
      My Computers


  2. Posts : 516
    Windows 10 Professional 64bit
       #2

    You should use PowerShell to run your console commands, which will allow for autocomplete.


    1. Open PowerShell
    2. Type cmd into the console to load an instance of Command Prompt.
    3. Type away using Tab for autocomplete paths.
      My Computer


  3. apb
    Posts : 94
    win 7 64bit
    Thread Starter
       #3

    Thanks, but nope. As best I can tell, that provides exactly the same functionality as cmd.exe does without running it from powershell.

    Note that what I want is the shell to search my path for executables. Neither cmd.exe, nor cmd from powershell does that. It simply completes for whatever is in the current directory only.

    Now maybe that is possible if I set some obscure things in powershell, but that does not happen out of the box for me.

    --peter

    - - - Updated - - -

    apb said:
    Thanks, but nope. As best I can tell, that provides exactly the same functionality as cmd.exe does without running it from powershell.

    Note that what I want is the shell to search my path for executables. Neither cmd.exe, nor cmd from powershell does that. It simply completes for whatever is in the current directory only.

    Now maybe that is possible if I set some obscure things in powershell, but that does not happen out of the box for me.

    --peter
    I should clarify:

    1. typing in the full name of an executable (optionally omitting the extension) does execute it.
    2. typing in part of the name does not complete with TAB unless the executable is in the current directory; it does not look in the path to find whether it might be somewhere else, unlike the 'where' command.


    The functionality I want is #2.
      My Computers


 

  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 13:23.
Find Us




Windows 10 Forums