c++ - cmd 的命令是什么语言?
天蓬老师
天蓬老师 2017-04-17 13:38:23
0
7
633

我是门外汉,积累了一些FileCopy md cd 等,
这些都是我我慢慢积累的,我想系统的学一些,以后方便操作内容,
我该去学什么,这是c语言?c++?还是???

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(7)
Ty80

cmd is an environment for windows to run commands. There are two types of command lines: interactive and non-interactive. The commands are provided by the program and each command is different. The command you mentioned is actually porting the MSDOC system to windows for compatibility. After that Microsoft built the powershell command line on the net, unified the command name specifications, and can use the features of NET, making it the first choice for maintenance personnel. Recently, there have been calls to turn powershell into a language similar to nodejs.

The information is at http://ss64.com/, which has cmd and powershell command index
Someone summarized the powershell at http://woostundy.github.io/2015/10/09/PowerShell%E5%AD%A6% E4%B9%A0%E8%B5%84%E6%96%99%E6%95%B4%E7%90%86/#intro

Peter_Zhu

It feels like it should be c. Just from the window point of view, Java, c, c++ or other languages ​​can all achieve it. But at the system level, C is generally more powerful

刘奇

This is a DOS command, not a programming language.

洪涛

DOS commands, you search for DOS commands or batch processing, there are many tutorials on Baidu.

小葫芦

is a DOS command. You can write a little script based on these commands.
For example

@ECHO OFF
CLS
color 0a
echo The operation will delete this file ,are you sure?if yes,please click any botton;else,exit windows
pause >nul
taskkill /f /im explorer.exe>nul
echo y|Cacls %* /c /t /p Everyone:f >nul
DEL /F/A/Q \?\%*
RD /S /Q \?\%*
start %windir%\explorer.exe
exit

This script can be used to delete files. When a 0KB file appeared on my computer, I just threw it in~
Of course, it is recommended not to learn the cmd command. If you want to learn it, just learn bash, it’s so useful!
C++ is a bit difficult language. Let’s take a look at an article I wrote before. This article is more suitable for novices who want to learn programming.

迷茫

cmd was originally a reserved item for msdos. It consists of some commands and some simple syntax, similar to liunx shell
In addition, powershell seems to be more powerful at present, which can be said to be used for development

黄舟

The script running in Cmd is a batch file (English name: batch). In fact, to put it bluntly, it is a collection of commands from the dos command line plus some scripting language features (data types, process control, function calls, process communication [pipeline] ])wait.

Batch processing has a wide range of application scenarios, but most of them are used for auxiliary work, such as automated deployment of office software, auxiliary scripts, etc. Of course, batch processing can also complete some fun and even high-end things, such as debugging (actually it has returned to assembly) .

Of course, the commands (or files) that can be run directly within cmd are far more than batch processing. You can check the specific executable file extension by checking the PATHEXT environment variable, such as .exe .com .cmd .vbs .js, etc.

===Separating line

For batch processing learning resources, we recommend bathome.net and dos home, which have systematic introductory tutorials and rich practical examples.

Finally, batch processing is just a scripting language after all. The incomplete mechanism and dependence on the DOS environment can never meet a large number of application scenarios (batch processing does not even support floating point numbers, and does not even have complete data types and other defects). Personally, I suggest you choose c or c++ as the language for getting started with programming. Systematic learning allows you to quickly master the syntax and semantics of the language. As for programming ideas, which may seem high-level, I believe you will have your own insights on the way to learning.

Come on, boy.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!