任何人都可以帮我理解命令提示符 [英] Can anybody please help me understand the command prompt

查看:99
本文介绍了任何人都可以帮我理解命令提示符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

各位大家好。我刚刚开始从头开始学习编程,并发现如果不知道如何在计算机上使用命令提示符,就没有良好的编码体验。我已经知道一些基本命令并且可以实现它们,但仍然对命令提示符的含义非常模糊。如果有人为我分解,我将非常感激:



1.一般的命令提示符是什么?

2.What这有什么用呢?

3.为什么我在互联网上找到并尝试输入命令提示符的大部分命令都显示完全相同的错误未被识别为内部或外部命令,

可操作程序或批处理文件?

4.也许我需要一些额外的软件才能使用那些打印错误的软件?

5.What是批处理文件吗?

6.如何创建它?

7.您可以自行添加的任何内容都将被高度赞赏



我尝试了什么:



在命令提示符中,基本命令如cd,cd ..,mkdir ,

Hello everybody. I've just started learning programming from scratch recently and found out that no good coding experience comes without knowing how to use Command Prompt on your computer. I already know a few basic commands and can implement them but still have a really vague idea of what the Command Prompt is. I will be really grateful if anybody break it down for me:

1.What is the Command Prompt in general?
2.What is it good for?
3.Why most of the command that I found on the Internet and tried to type in the Command Prompt show the exact same error "not recognized as an internal or external command,
operable program or batch file"?
4.Maybe I need some additional software to use the ones that print an error?
5.What is a batch file?
6.How to create it?
7. ANYTHING THAT YOU CAN ADD FROM YOURSELF WILL BE HIGHLY APPRECIATED

What I have tried:

In the Command Prompt, basic commands like cd, cd.., mkdir,

推荐答案

忘记命令提示符 - 它被PowerShell取代,它可以完成每个CMD可以做的事情,加上更多的负载。



见这里:Powershell教程 [ ^ ]

和这里:带有示例的初学者的Windows PowerShell教程 [ ^ ]
Forget the Command prompt - it's being superseded by PowerShell, which does everythgin CMD can do, plus a whole load more.

See here: Powershell Tutorial[^]
and here: Windows PowerShell Tutorial for Beginners with examples[^]


要启动命令提示符窗口,请按键盘上的Win + R键。然后,键入 cmd 并按Enter或单击确定按钮。当cmd窗口打开时,您可以键入命令。要查看哪些命令可用,请在提示符下键入 help 。然后,您可以通过键入 helpcommandname找到每个命令的帮助。



但是正如OriginalGriff在上面提到的那样,你可以更好地花时间学习PowerShell。
To launch a command prompt window press the Win + R keys on your keyboard. Then, type cmd and press Enter or click the OK button. When the cmd window opens you can type your commands. To see which commands are available type help at the prompt. You can then find the help for each command by typing help "commandname".

But as OriginalGriff mentions above, your time might be better spent learning PowerShell.


CMD 提示符基本上只是一个操作系统shell,可以从Windows之前的几天重新创建旧的DOS提示符。 br />


如前所述,任何可以在这里完成的事情也可以在PowerShell中完成。

关于知道语法的唯一原因在PowerShell不可用的环境中;假设您使用的是Win 95启动盘。
The CMD prompt is basically just an OS shell which recreates the old DOS prompt from the days before Windows.

As has been previously stated, anything that can be done here can also be done in PowerShell.
About the only reason to know the syntax is in environments where PowerShell is not available; say you are using a Win 95 boot disc.


这篇关于任何人都可以帮我理解命令提示符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆