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


Date Format information in the registry



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

Date Format information in the registry
The 
Country Code
is a setting in the registry: 
This can be read using REG.exe as follows 
FOR /F "TOKENS=3 delims= " %%G IN ('REG QUERY 
"HKEY_CURRENT_USER\Control Panel\International\iCountry"') DO (SET 
_country=%%G) 
The 
date separator
is also a registry setting 
This can be read using REG.exe as follows 
FOR /F "TOKENS=3 delims= " %%G IN ('REG QUERY 
"HKEY_CURRENT_USER\Control Panel\International\sDate"') DO SET 
_date_sep=%%G 
DATE is an 
internal
 command. If 
Command Extensions
 are disabled DATE will not support the 
/T switch 
“Carpe Diem - Seize the day” ~ Horace 


DEFRAG
 
Defragment hard drive. 
Syntax 
DEFRAG <volume> [-a] [-f] [-v] [-?] 
Options
volume drive letter or mount point (d: or d:\vol\mountpoint) 
-a Analyze only 
-f Force defragmentation even if free space is low 
-v Verbose output 
Example: 
DEFRAG c:
“How can you expect to govern a country that has two hundred and forty-six kinds of cheese?” 
~ Charles de Gaulle 
DEL
 
Delete one or more files. 
Syntax 
DEL [options] [/A:file_attributesfiles_to_delete 
Key 
files_to_delete : This may be a filename, a list of files or a 
Wildcard 
options
/P Give a Yes/No Prompt before deleting.
/F Ignore read-only setting and delete anyway (FORCE)
/S Delete from all Subfolders (DELTREE) 
/Q Quiet mode, do not give a Yes/No Prompt before deleting. 
/A Select files to delete based on file_attributes 
file_attributes: 
R Read-only -R NOT Read-only 
S System -S NOT System 
H Hidden -H NOT Hidden 
A Archive -A NOT Archive 
Wildcards: These can be combined with part of a filename 
* Match any characters 
? Match any ONE character 
If a folder name is given instead of a file, all files in the folder will be deleted, but the folder itself 
will not be removed. 
Examples:
Delete "Hello World.txt" 


DEL "Hello World.txt"
Delete all files that start with the letter A 
DEL A*
Delete all files that end with the letter A 
DEL *A.*
Delete all files with a .doc extension: 
DEL *.doc
Delete all read only files: 
DEL /a:R *
Delete all files including any that are read only: 
DEL /F *

tải về 1.67 Mb.

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