DOS common commands, and DOS run-to-program commands

Source: Internet
Author: User
Tags net time set set nslookup nslookup tool disk defragmenter mstsc eventvwr

first, internal basic instructions (file operation)

1 dir

No parameters: View the files and folders that are currently in your directory.

/s: View the files and folders for which the current directory has all its subdirectories.

/A: View all files that include hidden files.

/ah: Only hidden files are displayed.

/w: Displays files and folders in a compact way (5 files on one line).

/p: Displayed as paging (automatically pausing after a page is displayed).

|more: The preceding symbol is "\" The one above, called the redirect symbol, is to put a

The result of the command is output as a parameter to another command. More is also an order, dir/w |more

The result is the same as the result of dir/w/p.

Other parameters you can use: dir/? view.

2 CD

CD Directory Name: Enter a specific directory. If you see a directory displayed as: ABCdef ghi

Input: Cdabcdef.ghi into the directory.

Cd\ back to the root directory.

Cd.. Go back to the top level directory.

3 MD Rd

MD Directory Name: Create a specific folder. (Dos under the habit called Directory, win under the custom called the text

Folder. Oh! )

RD Directory Name: Deletes a specific folder.

4 CLS

Clear the screen.

5 Copy

Copy path \ filename path \ filename: Copy a file to another location.

6 Move

Move path \ filename path \ filename: Move a file (cut + copy) to another

A place.

7 del

del file name: Deletes a file.

Del * *: Deletes all files under the current folder.

Del cannot delete a folder.

8 deltree

Delete the folder and all the subfolders underneath it there are also files, bad ... Don't mess with it.

9 Format

Format X::X represents a drive letter and formats a partition. The FAT file system format is used under DOS

When Windows2000 is installed, you will be asked to convert to NTFS.

Ten Type

Type text filename: Displays the contents of the text file.

Edit

In fact, this is a small program, editing text files with.

Ren

ren old filename New file name: Change the file name.

Second, about the network of common commands

1 Ping

Ping host IP or name: Send 4 ICMP packets to the target host to test if the host is receiving

and response, usually used to do the normal network is smooth test. But Ping does not represent the net

It is possible that the target host has a firewall and has blocked the ICMP response.

PING-T: Sending packets continuously. Of course, they are small, and they cannot be called attacks. Some people write their own

A program that resembles a ping command that sends a large packet of packets to block the target host

Network connection.

2 Net

The recommendation is to use NET/? To obtain specific help information. There are a lot of parameters, the parameters below are also

Number. Commonly used: NET view \ \ host to see sharing, Netstart/stop service to start and stop

Service, Messenger Service personal not very much.

3 netstat

Netstat host: View the status of the host's current TCP/IP connection, such as the port.

4 nbtstat

Nbtstat host: View the NetBIOS name used by the host.

5 tracert

Tracert Host: View the path from your own to the target machine. Such as:

Tracert www.ncie.gov.cn then wait ... You'll see the routing section you passed.

Point, generally larger routers, such as telecommunications trunk roads, in addition to IP, are marked in English

Of

6pathping

Pathping Host: Similar to tracert, but can display some tracert cannot display the letter

Interest. You can try it yourself.

7 FTP

The character way of FTP, I like to use;) do not install CuteFTP.

8 Telnet

The remote login program of character mode is a remote login program which is extremely loved by network personnel. I've often

Used to debug a mail server.

9ipconfig Very useful network configuration, troubleshooting ... Command.

Displays the current machine's network interface status without parameters.

/ALL first the detailed information.

/release releases the current IP.

/renew re-apply for IP.

/flushdns refreshes the DNS cache.

/registerdns the DNS server to register itself.

ARP to operate the current ARP cache .

-a displays the ARP cache.

-D Deletes a cache record.

-S Tian a cache record.

11nslookup Troubleshoot DNS errors. is an interactive tool. Before using it, try to figure out what DNS does and how DNS works.

Three: Windows comes with a DOS extension application

NET use\\ip\ipc$ ""/user: "" establishing an IPC NULL link

NET use\\ip\ipc$ "password"/user: "username" establishes IPC non-null link

NET Useh: \\ip\c$ "password"/user: "User name" after the direct login map the other side C: to the local H:

NET Useh: \\ip\c$ maps the other side C: to Local H:

NET use\\ip\ipc$/del Remove IPC links

NET Useh:/del to map the mappings of each other to local H:

NET user username password/add set up users

NET Userguest/active:yes activating the Guest user

NET user to see which users are

NET user account name to view the properties of the account

Netlocalgroup Administrators user name/add Add "user" to the administrator to have administrator privileges, note: After the administrator plus s with plural

net start to see which services are open

Net start service name (e.g.: net start Telnet, net start schedule)

NET stop service name stops a service

NET time\\ target IP to view the offset time

NET time\\ target Ip/set set the local computer time to synchronize with the "Destination IP" host, plus the parameter/yes to cancel the confirmation message

NET view to see which shares are open within the local area network

NET VIEW\\IP see which shares are turned on in the other LAN

Netconfig Display System Network settings

Netlogoff disconnected sharing

NET Pause Service name pauses a service

NET Sendip "text messages" send messages to each other

NET ver LAN network connection types and information that are in use

NET share viewing locally-enabled shares

NET shareipc$ Open ipc$ sharing

NET shareipc$/del Delete ipc$ share

NET sharec$/del Delete c: share

NET Userguest 12345 log in with the guest user and change the password to 12345

Netpassword Password Change system login password

Netstat-a See which ports are open, common Netstat-an

Netstat-n View Port network connectivity, common Netstat-an

Netstat-v viewing work in progress

Netstat-p protocol Example: Netstat-p TCQ/IP Viewing a protocol usage (viewing TCP/IP protocol usage)

Netstat-s View all protocol usage in use

Nbtstat-a IP 136 to 139 if one of the ports is open, you can view the user name of the other person who recently logged in (03)-Note: parameter-A to capitalize

Tracert-parameter IP (or computer name) trace route (packet), Parameter: "-W number" is used to set the time-out interval.

Ping IP (or domain name) sends the default size of 32 bytes of data to the host, parameter: "-l[space" packet size ";"-N Send data Number ";"-T "means to ping all the time.

Ping-t-l 65550 IP Death ping (send a file larger than 64K and always ping as the ping of death)

Ipconfig (winipcfg) for Windows NT and XP (Windows 95 98) To view the local IP address, ipconfig the available parameters "/all" To display all configuration information

TLIST-T Displays the process as a tree list (additional tools for the system, which are not installed by default, within the Support/tools folder of the installation directory)

KILL-F process name plus-F parameter force end a process (additional tools for the system, default is not installed, 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 example, "del/ar * *" means deleting all read-only files in the current directory, "Del/a-s * *" means deleting all files except system files in the current directory

Winver---------Check the Windows version

Wmimgmt.msc----Open Windows Management Architecture (WMI)

Wupdmgr--------Windows Update

wscript--------Windows Script Host Settings

Write----------WordPad

WINMSD---------System Information

Wiaacmgr-------Scanner and Camera Wizard

Winchat--------XP comes with LAN chat

Mem.exe--------Show Memory usage

Msconfig.exe---System Configuration Utility

Mplayer2-------Easy widnows Media Player

MSPaint--------Drawing Board

MSTSC----------Remote Desktop Connection

Mplayer2-------Media Player

Magnify--------Magnifier Utility

MMC------------Open the console

Mobsync--------Synchronization commands

DxDiag---------Checking DirectX information

DRWTSN32------System Doctor

Devmgmt.msc---Device Manager

Dfrg.msc-------Disk Defragmenter

Diskmgmt.msc---Disk Management utility

DCOMCNFG-------Open System Component Services

DdeShare-------turn on DDE sharing settings

Dvdplay--------DVD Player

NET Stopmessenger-----Stop the Messenger service

NET Startmessenger----Start Messenger Service

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

SNDREC32-------Recorder

SHRPUBW--------Create a shared folder

Secpol.msc-----Local Security Policy

SYSKEY---------System encryption, once encrypted can not be solved, protect the Windows XP system dual Password

Services.msc---Local Service settings

SNDVOL32-------Volume Control program

Sfc.exe--------System File Checker

Sfc/scannow---Windows File Protection

TSSHUTDN-------60-second Countdown shutdown command

Tourstart------XP profile (roaming XP programs that appear after installation is complete)

Taskmgr--------Task Manager

EVENTVWR-------Event Viewer

Eudcedit-------Character-font procedure

Explorer-------Open Resource Manager

Packager-------Object Wrapping Program

PERFMON.MSC----Computer Performance monitoring Program

ProgMan--------Program Manager

Regedit.exe----Registration Form

Rsop.msc-------Group Policy result set

Regedt32-------Registry Editor

Rononce-p----15-second shutdown

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

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

Cmd.exe--------cmd command prompt

Chkdsk.exe-----CHKDSK disk Check

Certmgr.msc----Certificate Management Utility

Calc-----------Start Calculator

Charmap--------Start character mapping table

CLICONFG-------SQL Server Client Network Utility

CLIPBRD--------Clipboard Viewer

Conf-----------start NetMeeting

Compmgmt.msc---Computer Management

cleanmgr-------Waste Finishing

CIADV.MSC------Indexing Service Program

OSK------------Open the On-screen keyboard

ODBCAD32-------ODBC data Source Manager

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

Lusrmgr.msc----native Users and Groups

Logoff---------Logoff command

IExpress-------Trojan Bundle tool, System comes with

Nslookup-------IP Address detector

Fsmgmt.msc-----shared Folder Manager

Utilman--------Utility Manager

Gpedit.msc-----Group Policy

IExpress-------Trojan Bundle tool

nslookup-------IP Address detector

Winver---------Check the Windows version

Wmimgmt.msc----Open Windows Management Architecture (WMI)

Wupdmgr--------Windows Update

wscript--------Windows Script Host Settings

Write----------WordPad

WINMSD---------System Information

Wiaacmgr-------Scanner and Camera Wizard

Winchat--------XP comes with LAN chat

Mem.exe--------Show Memory usage

Msconfig.exe---System Configuration Utility

Mplayer2-------Easy widnows Media Player

MSPaint--------Drawing Board

MSTSC----------Remote Desktop Connection

Mplayer2-------Media Player

Magnify--------Magnifier Utility

MMC------------Open the console

Mobsync--------Synchronization commands

DxDiag---------Checking DirectX information

DRWTSN32------System Doctor

Devmgmt.msc---Device Manager

Dfrg.msc-------Disk Defragmenter

Diskmgmt.msc---Disk Management utility

DCOMCNFG-------Open System Component Services

DdeShare-------turn on DDE sharing settings

Dvdplay--------DVD Player

NET Stopmessenger-----Stop the Messenger service

NET Startmessenger----Start Messenger Service

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

SNDREC32-------Recorder

SHRPUBW--------Create a shared folder

Secpol.msc-----Local Security Policy

SYSKEY---------System encryption, once encrypted can not be solved, protect the Windows XP system dual Password

Services.msc---Local Service settings

SNDVOL32-------Volume Control program

Sfc.exe--------System File Checker

Sfcscannow---Windows File Protection

TSSHUTDN-------60-second Countdown shutdown command

Tourstart------XP profile (roaming XP programs that appear after installation is complete)

Taskmgr--------Task Manager

EVENTVWR-------Event Viewer

Eudcedit-------Character-font procedure

Explorer-------Open Resource Manager

Packager-------Object Wrapping Program

PERFMON.MSC----Computer Performance monitoring Program

ProgMan--------Program Manager

Regedit.exe----Registration Form

Rsop.msc-------Group Policy result set

Regedt32-------Registry Editor

Rononce-p----15-second shutdown

REGSVR32U. dll----Stop DLL files from running

regsvr32u zipfldr.dll------Cancel Zip support

Cmd.exe--------cmd command prompt

Chkdsk.exe-----CHKDSK disk Check

Certmgr.msc----Certificate Management Utility

Calc-----------Start Calculator

Charmap--------Start character mapping table

CLICONFG-------SQL Server Client Network Utility

CLIPBRD--------Clipboard Viewer

Conf-----------start NetMeeting

Compmgmt.msc---Computer Management

cleanmgr-------Waste Finishing

CIADV.MSC------Indexing Service Program

OSK------------Open the On-screen keyboard

ODBCAD32-------ODBC data Source Manager

Oobemsoobea----Check if XP is active

Lusrmgr.msc----native Users and Groups

Logoff---------Logoff command

Gpedit.msc-----Group Policy

Not to be continued.

DOS common commands, and DOS run-to-program commands

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.