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



tải về 1.67 Mb.
Chế độ xem pdf
trang87/92
Chuyển đổi dữ liệu18.05.2022
Kích1.67 Mb.
#52014
1   ...   84   85   86   87   88   89   90   91   92
Cac lenh co ban trong DOS

Alternative
A delay can also be produced by the 
PING
 command with a loopback address, in tests this 
consumes less processor time than Sleep.exe or Timeout.exe 
If the purpose of the delay is to allow some other process to complete, then minimising 
processor use


e.g. for a delay of 40 seconds: 
PING -n 41 127.0.0.1>nul
See 
Clay Calvert's
 newsgroup posting for a full explanation of this technique. 
“It is awful work this love and prevents all a mans projects of good or glory” ~ Lord Byron 
TITLE
 
Change the title displayed above the CMD window. 
Syntax
TITLE [string
Key 
string The title for the command prompt window, up to 
243
 
characters. 
The TITLE command is typically used in a batch file to give the script window a meaningful 
name. 
The default title is %comspec% however, since the title can also be defined in a program 
shortcut, the title is typically set to "Command Prompt". 
The 
START
 command, used to start a program in a separate window also has an option to 
specify a title for the new Window. 
If you call a batch script in a new CMD session, then any TITLE set within the batch file will 
revert when the second CMD session ends. 
TITLE Some initial title text 
CMD /c MyBatchFile.cmd 
... 
TITLE is an 
internal
 command. 
"The longer the title, the less important the job" - George McGovern.
TLIST
 (
Resource Kit
 & Windows 2000 support tools) 
Task List. 
Show the command, command line, working directory, memory usage and DLLs for each 
running task. This command is no longer supplied with recent versions of the Windows resource 
kit, having been replaced by TASKLIST, however if you can find a copy Tlist does have the 
advantage of showing the full path of the process. 
Syntax 
TLIST 
TLIST -t 
TLIST pid 
TLIST -t pid 
TLIST pattern 
TLIST -t pattern 
Key 
-t : Show Task dependencies in Tree form 
pid : List module information for this task 
if no PID is given - all Tasks are listed 


pattern : A complete task name or expression pattern (e.g. CMD.*) 
if a pattern is given it will match against 
task names or window titles. 

tải về 1.67 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   84   85   86   87   88   89   90   91   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