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


/T Traverse all subfolders and change all matching files  found.  /E



tải về 1.67 Mb.
Chế độ xem pdf
trang91/92
Chuyển đổi dữ liệu18.05.2022
Kích1.67 Mb.
#52014
1   ...   84   85   86   87   88   89   90   91   92
Cac lenh co ban trong DOS

/T Traverse all subfolders and change all matching files 
found.
 /E Edit ACL instead of replacing it.
/x Edit ACL instead of replacing it; affect only ACEs that 
this user already owns* 
/R user Revoke all access rights from the given user. 
/D user  Deny specified user access, this will over-ride 
all other permissions the user has. 
/C Continue on access denied errors.
/Y Replace user's rights without verify 
/P user:permision[;FolderSpec] 
Replace user's rights. see /G option below 
/G user:permision[;FolderSpec] 
Grant specified user access rights, permision can be:
r Read
c Change (write)


f Full control 
p Change Permissions (Special access) 
o Take Ownership (Special access) 
x EXecute (Special access) 
e REad (Special access) 
w Write (Special access) 
d Delete (Special access) 
t Used only by FolderSpec. see below 
 “I spent most of the eighties, most of my life, riding around in somebody else's car, in 
possession of, or ingested of, something illegal, on my way from something illegal to something 
illegal with many illegal things happening all around me” - Iggy Pop 
XCOPY
 
Copy files and/or directory trees to another folder. XCOPY is similar to the COPY command 
except that it has additional switches to specify both the source and destination in detail. 
Xcopy has been 
deprecated
 under Vista and Windows 2008, this means that while still available 
now it may disappear in a future OS release. To ensure your scripts are 'future proof' use other 
tools (such as 
Robocopy
) instead of xcopy.
XCOPY is particularly useful when copying files from CDROM to a hard drive, as it will 
automatically remove the read-only attribute. 
Syntax 
XCOPY source [destination] [options
Key 
source : Pathname for the file(s) to be copied. 
destination : Pathname for the new file(s). 
[options] can be any combination of the following: 
Source Options 
/A Copy files with the archive attribute set (default=Y) 
/M Copy files with the archive attribute set and 
turn off the archive attribute, use this option 
when making regular Backups (default=Y) 
/H Copy hidden and system files and folders (default=N) 
/D:mm-dd-yyyy 
Copy files changed on or after the specified date. 
If no date is given, copy only files whose 
source date/time is newer than the destination time. 
/U Copy only files that already exist in destination. 
/S Copy folders and subfolders 
/E Copy folders and subfolders, including Empty folders. 
May be used to modify /T. 
/EXCLUDE:file1[+file2][+file3]... 
The files can each contain one or more full or partial 
pathnames to be excluded. 


When any of these match any part of the absolute path of 
a SOURCE file, then that file will be excluded. 
For example, specifying a string like \obj\ or .obj will 
exclude 
all files underneath the directory obj or all files with 
the 
.obj extension respectively. 
Copy Options 
/W Prompt you to press a key before starting to copy. 
/P Prompt before creating each file. 
/Y Suppress prompt to confirm overwriting a file. 
may be preset in the COPYCMD env variable. 
/-Y Prompt to confirm overwriting a file. 
/V
Verify
 that the new files were written correctly. 
/C Continue copying even if an error occurs. 
/I If in doubt always assume the destination is a folder 
e.g. when the destination does not exist. 
/Z Copy files in restartable mode. If the copy is 
interrupted part 
way through, it will restart if possible. (use on slow 
networks) 
/Q Do not display file names while copying. 
/F Display full source and destination file names while 
copying. 
/L List only - Display files that would be copied. 
 
Destination Options 
/R Overwrite read-only files. 
/T Create folder structure, but do not copy files. Do not 
include empty folders or subfolders.
/T /E will include empty folders and subfolders. 
/K Copy attributes. XCOPY will otherwise reset read-only 
attributes. 
/N If at all possible, use only a short filename (8.3) 
when creating 
a destination file. This may be necessary when copying 
between disks 
that are formatted differently e.g NTFS and VFAT, or 
when archiving
data to an ISO9660 CDROM. 
/O Copy file Ownership and ACL information. 
/X Copy file audit settings (implies /O). 
XCOPY will accept UNC pathnames

tải về 1.67 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   84   85   86   87   88   89   90   91   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