CMD Tricks

by Orange Shadow in Circuits > Microsoft

22395 Views, 83 Favorites, 0 Comments

CMD Tricks

title.png

Recently I posted another CMD (command prompt) About a Star Wars IV trick so I decided to post some more.

CMD is a windows tool to transport files, copy, delete and much more. It uses the "language" batch.

This instructable is just a touching off point and list of possibilities of CMD. There are plenty more resources online.

Need Help?

Capture.PNG
Capture2.PNG

The help command shows all available commands and a small description of them.

Type: [help] or [/?]

/? can follow a certain command to show an in depth description.

Customize the Color

Capture.PNG
Capture2.PNG

There are two possible commands to change the color of text or of the background:

[color set] or [color *]

"color set" will show a list of available colors and their corresponding letter.

"color *" sets the color, where "*" is the corresponding letter.

"color a," for example, will change the text to green.

"color **" will change the text and background color to desired colors.

This change is not permanent.

Change the Title

Capture.PNG
Capture2.PNG

This one changes the command (on the top left corner):

[title *]

where * is what you want the title to be.

It is not permanent.

Abort

Abort command will cancel any command that is currently executing.

Press [ctrl + c] to cancel

History

With this handy command you will be able to see the command history of your current session.

Simply press [F7] to display the list of commands entered during the current session. To run the previously entered command press F3. To run any command from the history list by it’s number, press F9 and type the command number.

Remote Shutdown

Capture.PNG
Capture2.PNG

Remotely shutdown any computer on your network. It will most likely not work in offices or schools (due to security), but should work on home networks.

"shutdown.exe -i" to open a new tab that will remotely shutdown a computer on your network.

Select the computer, decide whether to restart or shutdown, and dialog box.

Change Name

step 5.PNG

If you're bored with the beginning name you can change that.

[prompt *] where * is the desired name.

Clear All Commands

Capture.PNG
Capture1.PNG

To clear the entire screen:

[cls]

Exit

Capture.PNG

To quickly exit the cmd

[exit] to exit cmd