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



tải về 1.67 Mb.
Chế độ xem pdf
trang24/92
Chuyển đổi dữ liệu18.05.2022
Kích1.67 Mb.
#52014
1   ...   20   21   22   23   24   25   26   27   ...   92
Cac lenh co ban trong DOS

Examples:
COLOR 07, white on black is the default.
"COLOR 00" is an invalid option and will set %ERRORLEVEL% to 1 
The COLOR command will change the color of 
all
the text in the window. 
COLOR is an 
internal
 command. 
“How much more black could this be?" and the answer is "None...none more black” ~ Spinal 
Tap
COMP.exe
 
Compare two files (or sets of files). Display items which do not match. 
Syntax 
COMP [pathname1] [pathname2] [/D] [/A] [/L] [/N=number] [/C] 


Key 
pathname1 The path and filename of the first file(s) 
pathname2 The path and filename of the second file(s) 
/D Display differences in decimal format. (default) 
/A Display differences in ASCII characters. 
/L Display line numbers for differences. 
/N=number Compare only the first X number of lines in the file. 
/C do a case insensitive string comparison 
Running COMP with no parameters will result in a prompt for the 2 files and any options 
To compare sets of files, use wildcards in pathname1 and pathname2 parameters. 
When used with the /A option COMP is similar to the FC command but it displays the individual 
characters that differ between the files rather than the whole line. 
To compare files of different sizes, use /N= to compare only the first 

lines (common portion of 
each file.) 
COMP will normally finish with a 
Compare more files (Y/N) 
prompt 
to suppress this: ECHO n|COMP  
“Shall I compare thee to a summer's day” ~ William Shakespeare
CON2PRT.exe
 (Zero Admin Kit) 
Connect or disconnect a Printer 
All commands issued using this utility will affect only the user currently logged in. Con2prt is 
therefore ideal for managing NETWORK printer connections when used in a login script. 
Syntax
CON2PRT /f 
CON2PRT /c \\PrintServer\PrintShare 
CON2PRT /cd \\PrintServer\PrintShare 
Key 
/f - remove all network printer connections 
/c - connect to \\PrintServer\PrintShare 
/cd - connect to and set PrintShare as the default printer
Several switches can be combined in one command line. So you can remove all connections 
before adding new ones all in one command, you can only specify one default printer. 
For recent versions of Windows Microsoft now recommend the more flexible 
RUNDLL32
 in 
preference to con2prt. 
 “I think you know as well as I do what the problem is, Dave. You and Dr. Poole were planning 
to disconnect me. I cannot allow this to happen” - HAL
COPY
 
Copy one or more files to another location. 
Syntax 
COPY source destination [options


COPY source1 + source2.. destination [options
Key 
source : Pathname for the file or files to be copied. 
/A : ASCII text file (default) 
/B : Binary file copy - will copy extended characters. 
destination : Pathname for the new file(s). 
/V :
Verify
 that the new files were written correctly. 
/N : If at all possible, use only a short filename (8.3) when 
creating a destination file. This may be necessary when copying between 
disks that are formatted differently e.g NTFS and VFAT, or when 
archiving data to an ISO9660 CDROM. 
/Z : Copy files in restartable mode. If the copy is 
interrupted part way through, it will restart if possible. (use on slow 
networks) 
/Y : Suppress confirmation prompt (Windows 2000 only) 
/-Y : Enable confirmation prompt (Windows 2000 only) 

tải về 1.67 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   20   21   22   23   24   25   26   27   ...   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