Skip to main content

Posts

Quits the CMD.EXE program

Exit the CMD.EXE program  C:\Users\somet>exit /? Quits the CMD.EXE program (command interpreter) or the current batch script. EXIT [/B] [exitCode]   /B          specifies exiting the current batch script instead of               CMD.EXE.  If executed from outside a batch script, it               will quit CMD.EXE   exitCode specifies a numeric number.  if /B is specified, sets               ERRORLEVEL that number.  If quitting CMD.EXE, sets the process               exit code with that number.

Code of shutdown in CMD

 Code of SHUTDOWN in CMD C:\Users\somet>shutdown /? Usage: shutdown [/i | /l | /s | /sg | /r | /g | /a | /p | /h | /e | /o] [/hybrid] [/soft] [/fw] [/f]     [/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]     No args    Display help. This is the same as typing /?.     /?         Display help. This is the same as not typing any options.     /i         Display the graphical user interface (GUI).                This must be the first option.     /l         Log off. This cannot be used with /m or /d options.     /s         Shutdown the computer.     /sg        Shutdown the computer. On the next boot, if Automatic Restart Sign-On                is enabled, automatically sign in and lock the last intera...

Code of start in CMD

 Code of START in CMD C:\Users\somet>start /? Starts a separate window to run a specified program or command. START ["title"] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]       [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]       [/NODE <NUMA node>] [/AFFINITY <hex affinity mask>] [/WAIT] [/B]       [command/program] [parameters]     "title"     Title to display in the window title bar.     path        Starting directory.     B           Start the application without creating a new window. The                 application has ^C handling ignored. Unless the application                 enables ^C processing, ^Break is the only way to interrupt                 the application.   ...

Code of move in CMD

Code of MOVE in CMD C:\Users\somet>move /? Moves files and renames files and directories. To move one or more files: MOVE [/Y | /-Y] [drive:][path]filename1[,...] destination To rename a directory: MOVE [/Y | /-Y] [drive:][path]dirname1 dirname2   [drive:][path]filename1 Specifies the location and name of the file                           or files you want to move.   destination             Specifies the new location of the file. The destination                           can consist of a drive letter and colon, a                           directory name, or a combination. If you are moving                           only one file, you can also include a filename if     ...

Code of ipconfig in CMD

Code of IPCONFIG in CMD C:\Users\somet>ipconfig /? USAGE:     ipconfig [/allcompartments] [/? | /all |                                  /renew [adapter] | /release [adapter] |                                  /renew6 [adapter] | /release6 [adapter] |                                  /flushdns | /displaydns | /registerdns |                                  /showclassid adapter |                                  /setclassid adapter [classid] |                                 ...

Code of color in CMD

Code of COLOR in CMD C:\Users\somet>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 is 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 va...

Code of Copy in CMD

Code of Copy in CMD C:\Users\somet>copy /? Copies one or more files to another location. COPY [/D] [/V] [/N] [/Y | /-Y] [/Z] [/L] [/A | /B ] source [/A | /B]      [+ source [/A | /B] [+ ...]] [destination [/A | /B]]   source       Specifies the file or files to be copied.   /A           Indicates an ASCII text file.   /B           Indicates a binary file.   /D           Allow the destination file to be created decrypted   destination  Specifies the directory and/or filename for the new file(s).   /V           Verifies that new files are written correctly.   /N           Uses a short filename, if available when copying a file with a                non-8dot3 name.   /Y           Suppresses p...