Create your own cmd

xiaoxiao2021-03-06  14

Severally seeing the people's CMD displayed and unique, in fact, the basic command under DOS can create a personalized CMD display effect.

First look at the help of this prompt:

Prompt [Text]

TEXT specifies the new command prompt.

The prompt can consist of ordinary characters and the following specific code:

$ A & (AMPERSAND) $ B | $ C ((Left Bracket) $ D Current Date $ E Escape Code (ASCII Code 27) $ F) (Right Cord) $ G> (larger than symbol) $ h Back ( Wipe the previous character) $ 1 $ n Current Drive $ P Current Drive and Path $ Q = (ie) $ S (Space) $ T Current Time $ V Windows 2000 version number $ _Wrill $$ $ (Currency symbol)

If the command extension is enabled, the prompt command supports the following formatted characters:

$ According to the depth of the pushd directory stack ( ) character; each pushed layer has a character.

$ M If the current drive is not a network drive, the remote name associated with the current drive letter or empty string is displayed.

There is this change in the display state of this change CMD!

Below is my CMD formulation command:

@echo off

CD / E: Color 2PROMPT% UserName% @% computename% $ s [$ P] $ s $ d $ s $ t $ b $ _ #

Doskey Ls = DIR $ * doskey PWD = CD $ * doskey mkdir = md $ * doskey rmdir = rd $ * doskey rm = del $ * doskey mv = move $ * doskey cp = COPY $ * doskey cat = type $ * doskey Clear = CLS Title LS = DIR PWD = CD MKDIR = MD RMDIR = RD RM = DEL MV = Move Cp = Copy Cat = Type Clear = CLS

CLS

Turn it as a BAT file, then change the following in the registry:

[HKEY_LOCAL_MACHINE / SOFTWARE / Microsoft / Command Processor]

"Autorun" = "c: /Linux.bat"

Turn off the registry editor and open the CMD window to see the effect!

转载请注明原文地址:https://www.9cbs.com/read-46934.html

New Post(0)