Autocomplete host names in Windows CMD












0















WSL Bash thing does it, for example, when using ping :



enter image description here



But CMD can not do it.

Is there a way to achieve that?



Note: I know about clink, but it does not provide hosts file auto-completion, which is what I am looking for. I am not interested here in PowerShell. I suspect that extending clink could be a solution.










share|improve this question

























  • bash can autocomplete a lot of things, because applications can tell the complete command information about its command line parameters and other things. Powershell can also autocomplete arguments but I'm not sure about its capability

    – phuclv
    Jan 17 at 15:36











  • This does work for me. Windows 10 Pro -10.0.17763 Build 17763. E.g. I have a file called test in C:temp`. If I CD` to C:temp I can type ping, hit tab and it auto-completes it to ping test. Also works with directories.

    – HelpingHand
    Jan 17 at 20:48











  • WSL Bash is Linux; Command Prompt is Windows; There are tons of things one can do and the other can’t. Try using PowerShell instead

    – Ramhound
    Jan 17 at 23:27











  • @HelpingHand, that is nonsense, it is simply auto-completing that file. I look for hosts autocompletion. @Ramhound, that is the point, find a way where CMD can do the good things Linux bash already does.

    – nephewtom
    Jan 18 at 10:23











  • @nephewtom Then i don't understand what you're asking as your question isn't clear. I thought you had a directory of files/folders which are host names. For speed you wanted to tab complete these as a parameter to ping. This sounds more ping specific than OS specific.

    – HelpingHand
    Jan 18 at 10:30
















0















WSL Bash thing does it, for example, when using ping :



enter image description here



But CMD can not do it.

Is there a way to achieve that?



Note: I know about clink, but it does not provide hosts file auto-completion, which is what I am looking for. I am not interested here in PowerShell. I suspect that extending clink could be a solution.










share|improve this question

























  • bash can autocomplete a lot of things, because applications can tell the complete command information about its command line parameters and other things. Powershell can also autocomplete arguments but I'm not sure about its capability

    – phuclv
    Jan 17 at 15:36











  • This does work for me. Windows 10 Pro -10.0.17763 Build 17763. E.g. I have a file called test in C:temp`. If I CD` to C:temp I can type ping, hit tab and it auto-completes it to ping test. Also works with directories.

    – HelpingHand
    Jan 17 at 20:48











  • WSL Bash is Linux; Command Prompt is Windows; There are tons of things one can do and the other can’t. Try using PowerShell instead

    – Ramhound
    Jan 17 at 23:27











  • @HelpingHand, that is nonsense, it is simply auto-completing that file. I look for hosts autocompletion. @Ramhound, that is the point, find a way where CMD can do the good things Linux bash already does.

    – nephewtom
    Jan 18 at 10:23











  • @nephewtom Then i don't understand what you're asking as your question isn't clear. I thought you had a directory of files/folders which are host names. For speed you wanted to tab complete these as a parameter to ping. This sounds more ping specific than OS specific.

    – HelpingHand
    Jan 18 at 10:30














0












0








0








WSL Bash thing does it, for example, when using ping :



enter image description here



But CMD can not do it.

Is there a way to achieve that?



Note: I know about clink, but it does not provide hosts file auto-completion, which is what I am looking for. I am not interested here in PowerShell. I suspect that extending clink could be a solution.










share|improve this question
















WSL Bash thing does it, for example, when using ping :



enter image description here



But CMD can not do it.

Is there a way to achieve that?



Note: I know about clink, but it does not provide hosts file auto-completion, which is what I am looking for. I am not interested here in PowerShell. I suspect that extending clink could be a solution.







windows-10 cmd.exe autocomplete hosts-file hostname






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 18 at 10:32







nephewtom

















asked Jan 17 at 13:28









nephewtomnephewtom

1,125811




1,125811













  • bash can autocomplete a lot of things, because applications can tell the complete command information about its command line parameters and other things. Powershell can also autocomplete arguments but I'm not sure about its capability

    – phuclv
    Jan 17 at 15:36











  • This does work for me. Windows 10 Pro -10.0.17763 Build 17763. E.g. I have a file called test in C:temp`. If I CD` to C:temp I can type ping, hit tab and it auto-completes it to ping test. Also works with directories.

    – HelpingHand
    Jan 17 at 20:48











  • WSL Bash is Linux; Command Prompt is Windows; There are tons of things one can do and the other can’t. Try using PowerShell instead

    – Ramhound
    Jan 17 at 23:27











  • @HelpingHand, that is nonsense, it is simply auto-completing that file. I look for hosts autocompletion. @Ramhound, that is the point, find a way where CMD can do the good things Linux bash already does.

    – nephewtom
    Jan 18 at 10:23











  • @nephewtom Then i don't understand what you're asking as your question isn't clear. I thought you had a directory of files/folders which are host names. For speed you wanted to tab complete these as a parameter to ping. This sounds more ping specific than OS specific.

    – HelpingHand
    Jan 18 at 10:30



















  • bash can autocomplete a lot of things, because applications can tell the complete command information about its command line parameters and other things. Powershell can also autocomplete arguments but I'm not sure about its capability

    – phuclv
    Jan 17 at 15:36











  • This does work for me. Windows 10 Pro -10.0.17763 Build 17763. E.g. I have a file called test in C:temp`. If I CD` to C:temp I can type ping, hit tab and it auto-completes it to ping test. Also works with directories.

    – HelpingHand
    Jan 17 at 20:48











  • WSL Bash is Linux; Command Prompt is Windows; There are tons of things one can do and the other can’t. Try using PowerShell instead

    – Ramhound
    Jan 17 at 23:27











  • @HelpingHand, that is nonsense, it is simply auto-completing that file. I look for hosts autocompletion. @Ramhound, that is the point, find a way where CMD can do the good things Linux bash already does.

    – nephewtom
    Jan 18 at 10:23











  • @nephewtom Then i don't understand what you're asking as your question isn't clear. I thought you had a directory of files/folders which are host names. For speed you wanted to tab complete these as a parameter to ping. This sounds more ping specific than OS specific.

    – HelpingHand
    Jan 18 at 10:30

















bash can autocomplete a lot of things, because applications can tell the complete command information about its command line parameters and other things. Powershell can also autocomplete arguments but I'm not sure about its capability

– phuclv
Jan 17 at 15:36





bash can autocomplete a lot of things, because applications can tell the complete command information about its command line parameters and other things. Powershell can also autocomplete arguments but I'm not sure about its capability

– phuclv
Jan 17 at 15:36













This does work for me. Windows 10 Pro -10.0.17763 Build 17763. E.g. I have a file called test in C:temp`. If I CD` to C:temp I can type ping, hit tab and it auto-completes it to ping test. Also works with directories.

– HelpingHand
Jan 17 at 20:48





This does work for me. Windows 10 Pro -10.0.17763 Build 17763. E.g. I have a file called test in C:temp`. If I CD` to C:temp I can type ping, hit tab and it auto-completes it to ping test. Also works with directories.

– HelpingHand
Jan 17 at 20:48













WSL Bash is Linux; Command Prompt is Windows; There are tons of things one can do and the other can’t. Try using PowerShell instead

– Ramhound
Jan 17 at 23:27





WSL Bash is Linux; Command Prompt is Windows; There are tons of things one can do and the other can’t. Try using PowerShell instead

– Ramhound
Jan 17 at 23:27













@HelpingHand, that is nonsense, it is simply auto-completing that file. I look for hosts autocompletion. @Ramhound, that is the point, find a way where CMD can do the good things Linux bash already does.

– nephewtom
Jan 18 at 10:23





@HelpingHand, that is nonsense, it is simply auto-completing that file. I look for hosts autocompletion. @Ramhound, that is the point, find a way where CMD can do the good things Linux bash already does.

– nephewtom
Jan 18 at 10:23













@nephewtom Then i don't understand what you're asking as your question isn't clear. I thought you had a directory of files/folders which are host names. For speed you wanted to tab complete these as a parameter to ping. This sounds more ping specific than OS specific.

– HelpingHand
Jan 18 at 10:30





@nephewtom Then i don't understand what you're asking as your question isn't clear. I thought you had a directory of files/folders which are host names. For speed you wanted to tab complete these as a parameter to ping. This sounds more ping specific than OS specific.

– HelpingHand
Jan 18 at 10:30










1 Answer
1






active

oldest

votes


















-2














Not directly using ping command.



Ping only sends ICMP packets to single IP address, install nmap and you can do that from CMD though you need to read the manual for the commands






share|improve this answer
























  • I don't get what you are saying... What does nmap or ping have to do with CMD autocompletion capabilities? It is not related.

    – nephewtom
    Jan 17 at 15:52











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1395380%2fautocomplete-host-names-in-windows-cmd%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









-2














Not directly using ping command.



Ping only sends ICMP packets to single IP address, install nmap and you can do that from CMD though you need to read the manual for the commands






share|improve this answer
























  • I don't get what you are saying... What does nmap or ping have to do with CMD autocompletion capabilities? It is not related.

    – nephewtom
    Jan 17 at 15:52
















-2














Not directly using ping command.



Ping only sends ICMP packets to single IP address, install nmap and you can do that from CMD though you need to read the manual for the commands






share|improve this answer
























  • I don't get what you are saying... What does nmap or ping have to do with CMD autocompletion capabilities? It is not related.

    – nephewtom
    Jan 17 at 15:52














-2












-2








-2







Not directly using ping command.



Ping only sends ICMP packets to single IP address, install nmap and you can do that from CMD though you need to read the manual for the commands






share|improve this answer













Not directly using ping command.



Ping only sends ICMP packets to single IP address, install nmap and you can do that from CMD though you need to read the manual for the commands







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 17 at 13:47









user241367user241367

1




1













  • I don't get what you are saying... What does nmap or ping have to do with CMD autocompletion capabilities? It is not related.

    – nephewtom
    Jan 17 at 15:52



















  • I don't get what you are saying... What does nmap or ping have to do with CMD autocompletion capabilities? It is not related.

    – nephewtom
    Jan 17 at 15:52

















I don't get what you are saying... What does nmap or ping have to do with CMD autocompletion capabilities? It is not related.

– nephewtom
Jan 17 at 15:52





I don't get what you are saying... What does nmap or ping have to do with CMD autocompletion capabilities? It is not related.

– nephewtom
Jan 17 at 15:52


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1395380%2fautocomplete-host-names-in-windows-cmd%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to make a Squid Proxy server?

Is this a new Fibonacci Identity?

19世紀