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



tải về 1.67 Mb.
Chế độ xem pdf
trang40/92
Chuyển đổi dữ liệu18.05.2022
Kích1.67 Mb.
#52014
1   ...   36   37   38   39   40   41   42   43   ...   92
Cac lenh co ban trong DOS

Examples:
IF %1==12 GOTO MySubroutine
Echo the input was NOT 12 
goto:eof
:MySubroutine 
Echo the input was 12 
goto:eof 
Use a variable as a label 
CHOICE /C:01 /m choose [Y]yes or [N]No
goto s_routine_%ERRORLEVEL%
:s_routine_0
Echo You typed Y for yes 
goto:eof
:s_routine_1 
Echo You typed N for no 
goto:eof 
Use a variable as a 
comment
 
In this example the COPY command will only run if the parameter "Update" is supplied to the 
batch 
@echo off
setlocal
IF /I NOT %1==Update SET _skip=::
%_skip% COPY x:\update.dat
%_skip% echo Update applied
...
GOTO is an 
internal
 command. If 
Command Extensions
 are disabled GOTO will no longer 
recognise the :EOF label 
“GOTO... how bad can it be??...” ~ 
XKCD
 
HELP
 
Online help for MS Windows - most commands will give help when run with /? or -? (COMMAND 
/? or COMMAND -?) 
GUI Help is available from START - Help or by running the help files directly: 
C:\WINDOWS\help\ntcmds.chm 
C:\WINDOWS\help\ntdef.chm 
C:\WINDOWS\help\ntchowto.chm 
C:\WINDOWS\help\nthelp.chm 
C:\WINDOWS\help\ntshared.chm 
Syntax 


WINHELP [optionshelpfile.hlp 
WINHLP32.exe [optionshelpFile 
In XP: C:\WINDOWS\PCHealth\HelpCtr\Binaries\HelpCtr.exe 
options: 
-H show help about help 
-G[n] Build a .gid file and quit, 
If a number is specified, it determines which extensible tab to 
display by default the first time the help file is opened. 
A value of 1 would be the first tab beyond the Find tab. 
This command cannot be used with -S. 
-S Create a .gid file without showing an animated icon.
Cannot be used with -G. (winhlp32 only) 
-W window
Specify the window for displaying the topic. 
This command cannot be used with -P. 
-P Show the topic in a pop-up window.
This command cannot be used with -W.
You must use the -P switch in combination with the
-N (context number) or -I (topic ID) switch. 
-N contextNum | -I topicID 
Specify the topic to open using either a topic number,
(defined in the [MAP] section of the HPJ file.) 
or a topic ID string
(# footnote in the topic). 
-K keyword
Specify the topic to open using a keyword. 
This command cannot be used with -N or -I. 
Powershell: 
Get-Help
 - Open the help file 
Equivalent bash command (Linux): man pages 
 
"Whether a pretty woman grants or withholds her favours, she always likes to be asked for 
them" - Ovid (Ars Amatoria) 
IF
 
Conditionally perform a command. 

tải về 1.67 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   36   37   38   39   40   41   42   43   ...   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