Window - CMD

WIFI Hotspot

Create HotSpot

C:\Users\USER-PC>netsh wlan set hostednetwork mode=allow ssid=HotspotName key=Password
The hosted network mode has been set to allow.
The SSID of the hosted network has been successfully changed.
The user key passphrase of the hosted network has been successfully changed.


Start HotSpot

C:\Users\USER-PC>netsh wlan start hostednetwork
The hosted network started.


Stop HotSpot

C:\Users\USER-PC>netsh wlan stop hostednetwork
The hosted network stopped.

Change CMD Color

C:\Users\USER-PC>help color
Sets the default console foreground and background colors.

COLOR [attr]

  attr    Specifies color attribute of console output

Color attributes are specified by TWO hex digits -- the first
corresponds to the background; the second the foreground. Each digit
can be any of the following values:

    0 = Black      8 = Gray
    1 = Blue        9 = Light Blue
    2 = Green     A = Light Green
    3 = Aqua      B = Light Aqua
    4 = Red         C = Light Red
    5 = Purple    D = Light Purple
    6 = Yellow    E = Light Yellow
    7 = White     F = Bright White

If no argument is given, this command restores the color to what it was
when CMD.EXE started. This value either comes from the current console
window, the /T command line switch or from the DefaultColor registry
value.

The COLOR command sets ERRORLEVEL to 1 if an attempt is made to execute
the COLOR command with a foreground and background color that are the
same.

Example: "COLOR fc" produces light red on bright white

C:\Users\USER-PC>color 07

Change connection mode to a wireless network out of range

Manual

C:\Users\USER-PC>netsh wlan set profileparameter name="PROFILE NAME" connectionmode=manual


Auto

C:\Users\USER-PC>netsh wlan set profileparameter name="PROFILE NAME" connectionmode=auto

Change Prompt Text

C:\Users\USER-PC>help prompt
Changes the cmd.exe command prompt.

PROMPT [text]

 text  Specifies a new command prompt.

Prompt can be made up of normal characters and the following special codes:

 $A  & (Ampersand)
 $B  | (pipe)
 $C  ( (Left parenthesis)
 $D  Current date
 $E  Escape code (ASCII code 27)
 $F  ) (Right parenthesis)
 $G  > (greater-than sign)
 $H  Backspace (erases previous character)
 $L  < (less-than sign)
 $N  Current drive
 $P  Current drive and path
 $Q  = (equal sign)
 $S   (space)
 $T  Current time
 $V  Windows version number
 $_  Carriage return and linefeed
 $$  $ (dollar sign)

If Command Extensions are enabled the PROMPT command supports
the following additional formatting characters:

 $+ zero or more plus sign (+) characters depending upon the
    depth of the PUSHD directory stack, one character for each
    level pushed.

 $M Displays the remote name associated with the current drive
    letter or the empty string if current drive is not a network
    drive.

C:\Users\USER-PC>prompt $Ltext$G

<text>

Change Window Title

C:\Users\USER-PC>title Text

Check Maximum RAM Capacity of Your Computer

C:\Users\USER-PC>wmic memphysical get maxcapacity

Check up Hard Disk Health natively in Windows

C:\Users\USER-PC>wmic
wmic:root\cli>diskdrive get status
Status
OK

wmic:root\cli>

Clear Screen

C:\Users\USER-PC>cls

Convert GPT drive into MBR

Error when installing window: Windows cannot be installed on this disk. The selected disk is of the GPT partition style.

Press Shift + F10 to open command prompt.

C:\Users\USER-PC>diskpart
DISKPART>
DISKPART> list disk
DISKPART> select disk DiskNumber
DISKPART> clean
DISKPART> convert mbr

Copy CMD Output to Clipboard

C:\Users\USER-PC>ipconfig | clip


You may change ipconfig to other CMD function.

Copying file from Directory A to Directory B

C:\Users\USER-PC>copy Directory_A Directory_B

Create New Directory

C:\Users\USER-PC>md FOLDER NAME