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



tải về 1.67 Mb.
Chế độ xem pdf
trang72/92
Chuyển đổi dữ liệu18.05.2022
Kích1.67 Mb.
#52014
1   ...   68   69   70   71   72   73   74   75   ...   92
Cac lenh co ban trong DOS

Examples
C:\demo> pushd \work
C:\work> popd 
C:\demo> pushd "F:\monthly reports" 
F:\monthly reports> popd 
C:\demo> 
PUSHD is an 
internal
 command. If 
Command Extensions
 are disabled the PUSHD command 
will not accept a network (UNC) path. 
#Ah, push it - push it good 
Ah, push it - p-push it real good# ~ Salt 'N' Pepa 
RASPHONE (Dial Up Networking)
 
Manage Remote Access Service (RAS) connections. 
This is a part of the Dial-Up Networking service, typically used to connect a PC to an Internet 
Service Provider. 
Dial a RAS connection: 
RASPHONE [-v] -f PhoneBook_file -d "PhoneBook_entry"
Hang up a RAS connection: 
RASPHONE [-v] -f PhoneBook_file -h "PhoneBook_entry"
Display RAS Status dialogue box 
RASPHONE -S 
Other RAS options: 
RASPHONE [-v] -f PhoneBook_file options "PhoneBook_entry
OPTIONS 
-a : Add new PhoneBook entry 
-e : Edit an existing PhoneBook entry 
-c : Clone an existing PhoneBook entry 
-r : Delete/remove an existing PhoneBook entry 
-v : Disable - 'grey out' the option to rename the PhoneBook_entry 
To use this command requires that Dial Up Networking Service be installed (via Control Panel - 
Networking) 
The default location for PhoneBook entries is %SystemRoot%\System32\ras\ 
"Someone invented the telephone, And interrupted a nation's slumber, Ringing wrong but 
similar numbers" - Ogden Nash
RECOVER
 
Recover a damaged file from a defective disk. 
Syntax 
RECOVER [drive:][path]filename 
Recover is designed to help in the case of hardware failure. When a drive fails the failure is not 
always total, in other words you may be able to read some of the files but not others, and some 


files will be only partly readable. 
The data on a disk is stored in tracks and sectors in an almost random manner. Data stored in a 
bad sectors cannot be read. 
RECOVER reads a file sector by sector and recovers data from the good sectors. You must 
specify a 
filename

Recover does not allow you to undelete a file. 
Recover the files one at a time. 
“Whom the gods love dies young” ~ Menander 300 BC 
REG.exe
 
Read, Set or Delete registry keys and values, save and restore from a .REG file. 
Syntax: 
REG QUERY [ROOT\]RegKey /v ValueName [/s] 
REG QUERY [ROOT\]RegKey /ve --This returns the (default) value 
REG ADD [ROOT\]RegKey /v ValueName [/t DataType] [/S Separator] [/d 
Data] [/f] 
REG ADD [ROOT\]RegKey /ve [/d Data] [/f] -- Set the (default) value 
REG DELETE [ROOT\]RegKey /v ValueName [/f] 
REG DELETE [ROOT\]RegKey /ve [/f] -- Remove the (default) value 
REG DELETE [ROOT\]RegKey /va [/f] -- Delete all values under this 
key 
REG COPY [\\SourceMachine\][ROOT\]RegKey 
[\\DestMachine\][ROOT\]RegKey 
REG EXPORT [ROOT\]RegKey FileName.reg 
REG IMPORT FileName.reg 
REG SAVE [ROOT\]RegKey FileName.hiv 
REG RESTORE \\MachineName\[ROOT]\KeyName FileName.hiv 
REG LOAD FileName KeyName 
REG UNLOAD KeyName 
REG COMPARE [ROOT\]RegKey [ROOT\]RegKey [/v ValueName] [Output] [/s] 
REG COMPARE [ROOT\]RegKey [ROOT\]RegKey [/ve] [Output] [/s] 
Key: 
ROOT : 
HKLM = HKey_Local_machine (default) 
HKCU = HKey_current_user 
HKU = HKey_users 
HKCR = HKey_classes_root 
ValueName : The value, under the selected RegKey, to edit. 
(default is all keys and values) 
/d Data : The actual data to store as a "String", integer etc 
/f : Force an update without prompting "Value exists, 
overwrite Y/N" 


\\Machine : Name of remote machine - omitting defaults to current 
machine. 
Only HKLM and HKU are available on remote machines. 
FileName : The filename to save or restore a registry hive. 
KeyName : A key name to load a hive file into. (Creating a new 
key) 
/S : Query all subkeys and values. 
/S Separator : Character to use as the separator in REG_MULTI_SZ 
values 
the default is "\0"
/t DataType
REG_SZ (default) | REG_DWORD | REG_EXPAND_SZ | 
REG_MULTI_SZ
 
Output : /od (only differences) /os (only matches) /oa (all) /on 
(no output) 
To save a directory path with a trailing backslash (
\
) requires adding a second backslash to 
'escape the escape'
so for example instead of 
"C:\My Docs\"
use 
"C:\My Docs\\"

tải về 1.67 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   68   69   70   71   72   73   74   75   ...   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