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.
Chia sẻ với bạn bè của bạn: