1. Lệnh Ping : Cú pháp: Code: ping ip/host [/t][/a][/l][/n]



tải về 1.67 Mb.
Chế độ xem pdf
trang32/92
Chuyển đổi dữ liệu18.05.2022
Kích1.67 Mb.
#52014
1   ...   28   29   30   31   32   33   34   35   ...   92
Cac lenh co ban trong DOS

Examples:
A macro to open notepad 
DOSKEY note=notepad.exe
A macro to open WordPad 
DOSKEY wpad="C:\Program Files\Windows NT\Accessories\wordpad.exe"
A macro called `d' to run dir/w 
DOSKEY d=dir/w
A macro to disable the FORMAT command 
DOSKEY FORMAT=;Ive disabled the Format command
“No man steps in the same river twice, for it's not the same river, and he's not the same man” - 
Heraclitus
DSMOD.exe
 
Modify active directory object. 
Syntax 
DSMOD Computer
 
DSMOD Contact
 
DSMOD Group
 
DSMOD OU
 
DSMOD Server
 
DSMOD User
 
DSMOD Quota
 
DSMOD Partition
 
DS* commands are available on networked machines with the server role 
A.D. Domain 
Services 
installed, Domain Controllers (or for XP users: XP Professional). 
Special characters in distinguished names
Commas within a CN must be escaped with the backslash \ character 
e.g. 
"CN=Company\, Inc.,CN=Users,DC=ss64,DC=com"
Backslashes must also be escaped with a backslash
for example, 
"CN=Sales\\ Latin America,OU=Distribution 
Lists,DC=ss64,DC=com"


If any value contains spaces, use quotation marks: 
e.g. 
"CN=John Smith,CN=Users,DC=SS64,DC=com"
“The aim of science is not to open the door to infinite wisdom but to set a limit to infinite error” 
~ Bertolt Brecht „Life of Galileo‟
ECHO
 
Display messages on screen, turn command-echoing on or off. 
Syntax 
ECHO [ON | OFF]
ECHO [message]
Key 
ON : Display each line of the batch on screen (default) 
OFF : Only display the command output on screen 
message : a string of characters to display 
Type ECHO without parameters to display the current echo setting (ON or OFF). 
In most batch files you will want ECHO OFF, turning it ON can be useful when debugging a 
problematic batch script. 
In a batch file, the @ symbol is the same as ECHO OFF applied to the current line only. 
Normally a command is executed and takes effect from the next line onwards, @ is a rare 
example of a command that takes effect immediately. 
Command characters will normally take precedence over the ECHO statement 
e.g. The redirection and pipe characters: & < > | ON OFF 
To override this behaviour you can 
escape
 each command character with ^ as follows: 
ECHO Nice ^&Easy 
ECHO Salary is ^> Commision 
ECHO Name ^| Username ^| Expiry Date 
ECHO:Off On Holiday 

tải về 1.67 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   28   29   30   31   32   33   34   35   ...   92




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý

    Quê hương