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



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

 
Examples
Rename Monday.txt as Tuesday.txt 
C:\> REN Monday.txt Tuesday.txt
Substitute a character in the 1st and 3rd positions prior to any extension (adds a 2nd or 3rd 
character if it doesn't exist yet) 
ren * A?Z* 
1 -> AZ 
12 -> A2Z 
1.txt -> AZ.txt 
12.txt -> A2Z.txt 
123 -> A2Z 


123.txt -> A2Z.txt 
1234 -> A2Z4 
1234.txt -> A2Z4.txt 
Change the (final) extension of every file 
ren * *.txt 
a -> a.txt 
b.dat -> b.txt 
c.x.y -> c.x.txt 
Append an extension to every file 
ren * *?.bak 
a -> a.bak 
b.dat -> b.dat.bak 
c.x.y -> c.x.y.bak 
Remove any extra extension after the initial extension. Note that adequate

must be used to 
preserve the full existing name and initial extension. 
ren * ?????.????? 
a -> a 
a.b -> a.b 
a.b.c -> a.b 
part1.part2.part3 -> part1.part2 
123456.123456.123456 -> 12345.12345 (note truncated name and 
extension because not enough `?` were used) 
Same as above, but filter out files with initial name and/or extension longer than 5 chars so that 
they are not truncated. (Obviously could add an additional

on either end of targetMask to 
preserve names and extensions up to 6 chars long.) 
ren ?????.?????.* ?????.????? 
a -> a 
a.b -> a.b 
a.b.c -> a.b 
part1.part2.part3 -> part1.part2 
123456.123456.123456 (Not renamed because it doesn't match 
sourceMask) 
Change characters after last 
_
in name and attempt to preserve extension. (Doesn't work 
properly if 
_
appears in extension.) 
ren *_* *_NEW.* 
abcd_12345.txt -> abcd_NEW.txt 
abc_newt_1.dat -> abc_newt_NEW.txt 
abcdef.jpg (Not renamed because it doesn't match sourceMask) 
abcd_123.a_b -> abcd_123.a_NEW (not desired, but no simple 
RENAME form will work in this case)
Any name can be broken up into components that are delimited by 
.
characters may only be 
appended to or deleted from the end of each component. Characters cannot be deleted from or 
added to the beginning or middle of a component while preserving the remainder with wildcards. 
Substitutions are allowed anywhere. 
ren ??????.??????.?????? ?x.????999.*rForTheCourse 
tải về 1.67 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   72   73   74   75   76   77   78   79   ...   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