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


Example: adding a File Association



tải về 1.67 Mb.
Chế độ xem pdf
trang10/92
Chuyển đổi dữ liệu18.05.2022
Kích1.67 Mb.
#52014
1   ...   6   7   8   9   10   11   12   13   ...   92
Cac lenh co ban trong DOS

Example: adding a File Association
To add the File Type "SQLfile"=Notepad.exe and also set the File Association of .SQL="SQLfile" 
run this command: 
ASSOCIATE .SQL Notepad.exe
Example: Removing a File Association
ASSOCIATE .SQL /d 
Note that /d will delete the File Association but will NOT delete the File Type.


File types created by Associate.exe are always given a name in the form xxxfile, where xxx is 
the file extension.
“The earth does not belong to man.... man belongs to the earth” ~ Chief Seattle
ATTRIB.exe 
Display or change file attributes. Find Filenames. 
Syntax 
ATTRIB [ + attribute | - attribute ] [pathname] [/S [/D]] 
Key 
+ : Turn an attribute ON 
- : Clear an attribute OFF 
pathname : Drive and/or filename e.g. C:\*.txt 
/S : Search the pathname including all subfolders. 
/D : Process folders as well 
attributes:
R Read-only (1) 
H Hidden (2) 
A Archive (32) 
S System (4) 
extended attributes
E Encrypted 
C Compressed (128:read-only) 
I Not content-indexed 
L Symbolic link/Junction (64:read-only) 
N Normal (0: cannot be used for file selection) 
O Offline 
P Sparse file 
T Temporary
The numeric values may be used when changing 
attributes with VBS/WSH
 
If no attribute is specified attrib will return the current attribute settings. Used with just the /S 
option ATTRIB will quickly search for a particular filename. 
 
Hidden and System attributes take priority. 
If a file has both the Hidden and System attributes set, you can clear both attributes only with a 
single ATTRIB command.
For example, to clear the Hidden and System attributes for the RECORD.TXT file, you would 
type:
ATTRIB -S -H RECORD.TXT
File Attributes
You can use wildcards (? and *) with the filename parameter to display or change the attributes 
for a group of files.
Remember that, if a file has the System or Hidden attribute set, you must clear that attribute 
before you can change any other attributes. 

tải về 1.67 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   6   7   8   9   10   11   12   13   ...   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