Autocomplete host names in Windows CMD
WSL Bash thing does it, for example, when using ping
:
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
|
show 5 more comments
WSL Bash thing does it, for example, when using ping
:
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
bash can autocomplete a lot of things, because applications can tell thecomplete
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 calledtest
inC:temp`. If I
CD` toC:temp
I can typeping
, hit tab and it auto-completes it toping 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 forhosts
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
|
show 5 more comments
WSL Bash thing does it, for example, when using ping
:
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
WSL Bash thing does it, for example, when using ping
:
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
windows-10 cmd.exe autocomplete hosts-file hostname
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 thecomplete
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 calledtest
inC:temp`. If I
CD` toC:temp
I can typeping
, hit tab and it auto-completes it toping 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 forhosts
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
|
show 5 more comments
bash can autocomplete a lot of things, because applications can tell thecomplete
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 calledtest
inC:temp`. If I
CD` toC:temp
I can typeping
, hit tab and it auto-completes it toping 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 forhosts
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
|
show 5 more comments
1 Answer
1
active
oldest
votes
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
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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
inC:temp`. If I
CD` toC:temp
I can typeping
, hit tab and it auto-completes it toping 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