Windows Command Line

Usually for most users, the commandThe string remains a mystery from the programming world, as few people encounter it when working. But cases when it is simply necessary are not uncommon. For example, it can be useful for checking network settings, which can not be done in any other way. However, the command line is not limited to the network settings. Let's look at how simple commands, for example, cd and move, as well as more complex ones, for example, wuauclt.

Стоит отметить, что эти команды предназначены не only for the command line. They can be called without it. However, they very often output the result to standard output, that is, if they are called without the command line, then their result will flash very quickly before your eyes, almost imperceptibly. So, run the command line with the help of "Start" - "Run", after which you need to enter cmd - ok. If there is no such item in the menu, then you can use the combination WIN + R.

Basic commands: description

The command line always shows whichdirectory at the moment you are. To switch to a different directory, you can use the cd command, you just need to enter it, and then write the address of the new directory, and then press enter. And here the point is that you can specify both the full path and the relative one, that is, it will be counted from the current directory. And to switch to another disk, you will not need to use the cd command, you need to add it, for example, with the d: command, and then confirm.

If you wrote a long team thatyou confirmed, after which the system simply "swore", and you understand where your mistake is, it is not necessary to write everything from the beginning. It is worthwhile to press the up arrow, which will call the previous command, which you can rewrite.

The following basic commands are del, moveand copy. The first is for deleting a file, the second is for moving it, and the third is for copying. You can practice on some files that are not valuable. To base commands it is quite possible to carry and path. You can enter it and look at the result. Programs from the directories listed in its parameters can be started without specifying the full path. To add a new directory, you need to perform simple manipulations, by adding path =% PATH%; newdir.

The Windows command line does not allowCopy and paste using standard operating system shortcuts, but it has a context menu, which is very convenient. When you right-click in front of you, all you need is displayed.

Command line: useful utilities

You can use several convenient commands that will allow you to do something new for yourself.

Shutdown - allows you to shutdowncomputer directly from the command line. After the command, you can append very important parameters: -r for reboot, -t N -down will happen after N seconds, -a - allows you to cancel already scheduled reboot.

Msconfig is a special utility,through which you can configure what to run or do not start the next time you turn on your computer. This can be very useful if you are looking for reasons for braking in the work.

gpedit.msc configures group policies. This is a very complex topic for coverage in this article.

services.msc allows you to manage the basic services of the operating system.

wuauclt / detectnow allows you to start the process of searching for updates.

Getmac allows you to learn the MAC address of your computer without having to use any special commands or parameters.

It's important to say that the Windows 7 command line works exactly the same way with the same commands. Therefore, you will not have problems with the transition to a new operating system.