100 cmd commands commonly used under Windows and common operations

Source: Internet
Author: User
Tags echo info net time net send nslookup disk defragmenter

  1. gpedit.msc-– Group Policy

    2. Sndrec32 ——-Recorder

    3. Nslookup ——-IP Address Detector is a command-line tool that monitors whether DNS servers in a network can correctly implement domain name resolution. It can be used in Windows NT/2000/XP, but it is not integrated in Windows 98.

    4. Explorer ——-Open Explorer

    5. Logoff ——— Logout command

    6. Shutdown ——-60 seconds Countdown shutdown command

    7. lusrmgr.msc--Native Users and Groups

    8. services.msc-Local Service settings

    9. oobe/msoobe/a--Check if XP is active

    Ten. notepad--– Open Notepad

    cleanmgr ——-Waste Finishing

    . net start messenger--start Messenger Service

    compmgmt.msc-Computer Management

    . net stop messenger-– stop messenger Service

    Conf ——— – Start NetMeeting

    Dvdplay--–dvd player

    charmap--– Start character mapping table

    diskmgmt.msc-Disk Management Utility

    Calc ——— – Start Calculator

    Dfrg.msc ——-Disk Defragmenter

    Chkdsk.exe-–chkdsk disk Check

    devmgmt.msc-Device Manager

    regsvr32/u *.dll--Stop DLL file run

    drwtsn32--System Doctor

    Rononce-p--15 seconds off

    DxDiag ——— checking DirectX information

    Regedt32 ——-Registry Editor

    msconfig.exe-System Configuration Utility

    Rsop.msc. ——-Group Policy Result set

    mem.exe--– showing memory usage

    regedit.exe--Registration Form

    WINCHAT--–XP self-brought LAN chat

    progman--– Program Manager

    WINMSD ——— System Information

    perfmon.msc--Computer Performance Monitoring Program

    Winver ——— Check the Windows version

    sfc/scannow-– Scan error and restore

    taskmgr-– Task Manager (2000/xp/2003

    Winver ——— Check the Windows version

    wmimgmt.msc--Opening Windows Management Architecture (WMI)

    Wupdmgr--–windows. Update program

    Wscript--–windows Script Host Settings

    . Write ———-WordPad

    WINMSD ——— System Information

    Wiaacmgr ——-Scanner and Camera Wizard

    WINCHAT--–XP self-band LAN Chat

    mem.exe--– Display Memory usage

    msconfig.exe-System Configuration Utility

    Mplayer2 ——-Easy widnows Media Player

    mspaint--– drawing board

    Wuyi mstsc ———-Remote Desktop Connection

    Mplayer2 ——-Media Player

    magnify--– Magnifier Utility

    The. MMC ———— Open the console

    mobsync--– Synchronous Command

    DxDiag ——— checking DirectX information

    IExpress ——-Trojan Bundle tool, System comes with 58. fsmgmt.msc-– shared Folder Manager

    utilman--– Utility Manager

    diskmgmt.msc-Disk Management Utility

    DCOMCNFG ——-Open System Component Services

    DdeShare ——-turn on DDE sharing settings

    OSK ———— Open the On-screen keyboard

    ODBCAD32 ——-ODBC Data Source Administrator

    oobe/msoobe/a--Check if XP is active 114. Logoff ——— Logoff command

    notepad--– Open Notepad

    Nslookup. Tool Wizard for ——-network management

    . ntbackup ——-system backup and restore

    Narrator ——-Screen Narrator

    ntmsmgr.msc--Mobile Storage Manager

    ntmsoprq.msc-Mobile Storage Administrator Action Request

    netstat-an--(TC) command Check interface

    syncapp--–. Create a Briefcase

    sysedit--– System Configuration Editor

    Sigverif. ——-File Signature Validator

    ciadv.msc--Indexing Service Program

    shrpubw--–. Create a shared folder

    secpol.msc-– Local Security Policy

    Syskey ——— system encryption, once encrypted can not be solved, to protect the Windows XP system dual Password

    services.msc-Local Service settings

    Bayi. Sndvol32 ——-Volume Control program

    sfc.exe--– System File Checker

    Save. Sfc/scannow-windows File Protection

    ciadv.msc--Indexing Service Program

    About TOURSTART--XP (roaming XP programs that appear after installation is complete)

    taskmgr--– Task Manager

    EVENTVWR ——-Event Viewer

    Eudcedit ——-Character-font procedure

    compmgmt.msc-Computer Management

    Packager ——-Object Wrapping Program

    perfmon.msc--Computer Performance Monitoring Program

    charmap--–. Start Character mapping table

    CLICONFG ——-SQL SERVER Client Network Utility

    94. clipbrd--– Clipboard Viewer

    Conf ——— – Start NetMeeting

    certmgr.msc--Certificate Management Utility

    regsvr32/u. *.dll--Stop DLL file run

    98. regsvr32/u zipfldr.dll--Cancel Zip support

    Cmd.exe--–cmd Command Prompt

    Chkdsk.exe-–chkdsk disk Check

Disk Operations

Fdisk implicit parameter/mbr rebuild Master boot record fdisk/mbr rebuild master boot Record

Fdisk adds the/CMBR parameter after DOS7.0, which rebuilds the master boot record for the subsequent hard drive when multiple physical hard disks are hooked up, such as: Fdisk/cmbr 2, which overrides the master boot record for the second hard drive. (Be very careful when using, avoid the bad drive boot record damage)

Format parameter:/q Quick Format/u non-recoverable/autotest do not prompt/s to create MS-DOS boot disk format c:/q/u/autotest

Directory Operations

Dir [directory name or file name] [/s][/w][/p][/a] List directory parameter:/s find subdirectory/w only show file name/P page/a show hidden file DIR format.exe/s find Format.exe file for the disk and report location

MD (MKDIR) [directory name] Create directory MKDIR HELLOWORLD create HELLOWORLD Directory

CD (CHDIR) [directory name] PS: You can use relative directory or absolute directory to enter directory CD AA to enter the current folder under the AA directory, CD. Go to the previous folder CD \ Return to the root directory; CD C:\Windows into the C:\Windows folder

RD (RMDIR) [directory name] Delete Directory rd HELLOWORLD Delete HELLOWORLD directory

file Operations

Delete directory and its files: rmdir [directory name or file name] [/s][/w][/p][/a]. Example RmDir c:\qqdownload/s Delete the Qqdownload directory for C-drives.
del [directory name or file name] [/f][/s][/q] Delete parameter:/F Delete read-only file/s delete the directory and all content under it Q/A does not confirm before deleting
Del c:\del/s/q automatically deletes the Del directory of the C drive.
copy [source file or directory] [target directory] copies files copy d:\pwin98*.* c:\presetup Copies all the files of the D disk Pwin98 to the presetup of the C drive.
attrib [parameters] [source file or directory] File properties action command, attrib command can list or modify the properties of files on disk, file attributes include document (A), read-only (R), Hidden (H), System (S), for example: Attrib-h-r-s io.sys execute this command, will be the DOS system files Io.sys file read-only, hidden, system attributes are removed, this will be able to directly through the dir command to see the Io.sys file. attrib +h +r +s autoexec.bat will add the above attributes for the automatic batch file.

Memory Operations

Debug Debugging Memory parameter-w [filename] write binary-o [address 1] [address 2] Output memory-Q exit Exp:o 10[return] O 71 01
[Return] 01[return] Q[return] DOS Change the value of the BIOS password in the corresponding location in the CMOS by writing 70H/71H Port to clear the award BIOS password. Debug can also crack the hard disk protection card, etc., However, it can only be used under pure DOS.

Partitioning Operations

Partitioning a disk is typically divided into four partitions, which consist of a primary partition, an extended partition, and a logical partition.
Both PQ and Acronis disk Director can be used to resize partitions without losing data, as well as merge operations such as the XP system, where you use the PQ,WIN7 system to operate essentially the same way as Acronis disk director. can go online to find tutorials to see, do not re-install the system can adjust the size of the partition, but it is recommended that you back up the data and then adjust, after all, the direct operation of the hard disk is a certain risk.

Other Operations
NET use ipipc$ ""/user: "" to establish an IPC NULL linkNET use ipipc$ "password"/user: "username" establishes IPC non-null linkNET use h:ipc$ "password"/user: "User name" directly after the login map the other side C: to the local H:NET use h:ipc$ to map the other side c: to Local H:NET use ipipc$/Del Remove IPC LinkNET use H:/Del Delete map to local for H: mappingNET user username password/add set up usersNET user Guest/active:yes activates the guest userNET user to see which users areNET user account name to view the properties of the accountnet localgroup Administrators user name/add Add "user" to the administrator to have administrator privilegesnet start to see which services are openNET start service name opens the service, (for example:net start Telnet,NET start schedule)NET stop service name stops a serviceNET time destination IP to view the offsetNET time Destination IP/Set sets the local computer time to synchronize with the "Destination IP" host, plus the parameter/yes to cancel the confirmation messageNET view to see which shares are open within the local area networkNET view IP to see which shares are turned on in the other LANNET config display system network settingsNET logoff disconnected sharingNetPause Service name pauses a serviceNET send IP "text message" to the other party to send messagesNET ver LAN network connection types and information that are in useNET share viewing locally-enabled sharesNET share ipc$ turn on ipc$ sharingNET share ipc$/Del Delete ipc$ shareNET share C $/del Delete c: shareNET User Guest12345 log in with the guest user and change the password to12345NET password Password change system login password netstat-a See what ports are open, common Netstat-an netstat-n view Port network connectivity, common Netstat-an netstat-v view work in progress NETSTAT-P protocol Name Example: Netstat-p tcq/ip View a protocol Usage netstat-s view all protocol usage in use NBTSTAT-A IP partner136 to139 If one of the ports is open, you can view the user name tracert-parameter IP (or computer name) tracking route (packet), Parameter: "-W number" is used to set the time-out interval.Ping IP (or domain name) sends the default size to the other host32 bytes of data, parameters: "-l[space" packet size ";"-N Send data Number ";"-T "means alwaysPing.PING-T-L65550 IP deathPing (send larger than64K file and alwaysPing is the death ofPingIpconfig (winipcfg) for Windows NT and XP (Windows9598) View the local IP address,Ipconfig the available parameters "/all" Displays all configuration information tlist-t displays the process as a tree row table (additional tools for the system that are not installed by default, within the Support/tools folder of the installation directory) kill-f process name plus-F parameter after forcing the end of a process ( Additional tools for the system, which are not installed by default, are in the Support/tools folder of the installation directory)Del-f file name plus-f parameter can be deleted read-only files,/ar,/ah,/as,/AA respectively for the deletion of read-only, hidden, system, archive files,/a-r,/a-h,/a-s,/a-a means to delete files except read-only, hidden, system, archive. For exampleDel/ar * * "means to delete all read-only files under the current directory,"Del/a-s * * "means to delete all files except system files in the current directoryDEL/S/q directory or use: rmdir/s/q directory/S to delete all subdirectories and files under directories and directories. Use the parameter/q at the same time to cancel the system confirmation when the delete operation is deleted directly. (two commands are the same) the move drive letter path to move the file name of the files moved after moving the file name to move files, with the parameter/y will cancel to confirm that the mobile directory exists with the same file prompt is directly covered FC One.txt Two.txt >3st.txt compare two files and output the differences to3st.txt file, ">" and "> >" are redirect commands at ID number to open a scheduled task that has already been registered At/delete stop all scheduled tasks, use the parameter/yes to stop the at ID number directly without confirmation/delete stop a registered Scheduled tasks at view all scheduled tasks at IP time program name (or a command)/R run the other program at some point and restart the computer finger username @host See which users have recently logged on Telnet IP port far and landing server , the default port isThe open IP is connected to the IP (the command after Telnet) Telnet on this machine directly type telnet into the native TelnetCopy path file name1 Path file name2/y Copying files1 to the specified directory for the file2, with the parameter/y and cancel the confirmation you want to rewrite an existing directory fileCopy C:srv.exe ipadmin$ Copying the local c:srv.exe to the other side of the adminCopy1st.jpg/b+2st.txt/a3st.jpg will2st.txt's content to hide toGenerated in 1st.jpg3st.jpg new documents, note:2st.txt file header to empty three rows, parameters:/b refers to the binary file,/a refers to the ASCLL format fileCopy ipadmin$svv.exe C: or: copyipadmin$*.* Copy the Srv.exe file (all files) under the admini$ share to local C:xcopy to copy a file or directory tree destination address directory name copy files and directory tree, with the parameter/y will not prompt overwrite the same file with the parameter/E to the subdirectory under the directory to copy to the destination address. Tftp-i own IP (using meat machine as a springboard when this with meat machine IP) Get Server.exec:server.exe login, the "IP" server.exe download to the target host C:server.exe parameters:-I refers to the binary mode of transmission, If the exe file is used, if not plus-I is transmitted in ASCII mode (transfer text file mode) tftp-i the other IP put C:server.exe login, upload the local c:server.exe to the host FTP IP port to upload files to the server or file operation, the default port is21st. Bin refers to the binary mode (executable file), the default is the ASCII format (text file) route print shows the IP route, will mainly display network address addres, subnet mask netmask, gateway address gateways Addres , interface address interface ARP to view and process ARP cache, ARP is the meaning of name resolution, responsible for the resolution of an IP to a physical MAC address. ARP-A will show all information Start program name or command/max or/min open a new window and maximize (minimize) run a program or command mem View CPU usage attrib file name (directory name) view the properties of a Files (directory) attrib file name -a-r-s-h or +a +r +s +h Remove (add) a file of the archive, read-only, system, hidden properties; + is added as a propertyDir view file, Parameters:/q Display file and directory belongs to the system which user,/T:C display file creation time,/t:a show the last time the file was accessed,/t:w last modified time date/t, time/t use this parameter namely "date/t", "time/t" Displays only the current date and time, without having to enter a new date and timeSET specifies the environment variable name = The character to assign to the variable set environment variableSet shows all the current environment variablesSet P (or other character) displays all environment variables currently starting with the character P (or other characters)Pause pauses the batch process and displays: Press any key to continue ....If you are performing conditional processing in a batch program (seeIf command and variable)Goto label directs cmd.exe to labeled rows in a batch program (labels must be on a separate line with a colon, for example: ": Start" tab)The call path batch file name calls another batch program from the batch program (for more instructions seeCall/?)For each file in a set of files, execute a specific command (more instructions seefor command and variable)echo on or off turn on or offEcho, use onlyecho does not add parameters to display the currentecho SettingsEcho information Displays information on the screenecho Info >> pass.txt Save "info" to pass.txt file findstr "Hello" aa.txt find string in aa.txt file Hello find filename find a file title title name change C MD window Title name color value set CMD console foreground and background color;0= Black,1= Blue,2= Green,3= Light Green,4= Red,5= Violet,6= Yellow,7= White,8= Ash,9= Blue, a= light green, b= pale aqua, c= red, d= light purple, e= yellow, f= bright white prompt name change the displayed command prompt for cmd.exe (C:, D: Unified to: Entsky) ver displays version information in a DOS window winver pop up a window display Version information (memory size, system version, patch version, computer name) format drive letter/fs: Type formatted disk, type: FAT, FAT32, NTFS, Example: Format D:/fs:ntfs MD Directory name create directory replace source file to replace file Directory Replacement Fileren original filename new file name rename filename tree displays the directory in a tree structure, with parameter-F to list the file name in the first folder type filename Displays the contents of the text file the more file name displays the output file Doskey to lock the command = character Doskey To unlock a command = The lock command provided for DOS (edit the command line, recall the Win2K command, and create a macro). such as: Lockdir command: Doskey dir=entsky (Cannot use Doskey dir=dir); Unlock: Doskey dir= taskmgr Bring up Task Manager chkdsk/f D: Check disk D and Display status report, add parameter/F and repair error on disk tlntadmn telnt service admn, type tlntadmn select 3, then select Span class= "Hljs-number" >8, you can change the Telnet service default port 23 for any other port exit  To exit the Cmd.exe program or currently, use the parameter/b to exit the current batch script instead of the Cmd.exe path executable file name to set a path for the executable file. CMD launches a Win2K command Interpretation window.  Parameters:/eff,/en Close, open command extension, more details see CMD/? REGEDIT/S registry file name import registry; parameter/s refers to quiet mode import without any hint; regedit/e registry file name Export Registry cacls FileName parameter displays or modifies file access control lists (ACLs)-when in NTFS format. Parameter:/d Username: Set deny user access;/p user name: Perm Replace the access rights of the specified user;/g user name: Perm gives the specified user access; Perm can be: N None, R read, W write, C Change (write), F Full Control; Example: cacls d:es  T.TXT/D pub set D:est.txt deny pub user access. cacls file name View a list of Access user rights for a file rem text content add annotations in a batch file netsh view or change the local network configuration    

100 cmd directives commonly used under Windows and common actions

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.