dir命令列出以“;"结尾的文件名d.jpg" [英] dir command to list file names ending with " d.jpg"
问题描述
是否可以使用dir命令列出名称以"d.jpg"
结尾的文件?请注意前导空格.
Can dir command be used to list files whose name ends with " d.jpg"
? Please note the leading space.
我需要区分两种文件名,一种以"d.jpg"
结尾(后跟 d.jpg
的空格),另一种为"xxd.jpg"
(字母后跟 d.jpg
,无空格).好吧,实际上,在字母之前有一个空格,但在字母d之前没有.)例如, D953 D.JPG
和 D953 SHD.JPG
.
I need to differentiate two kinds of file names, one ending with " d.jpg"
(a space followed by d.jpg
), the other "xxd.jpg"
(alphabets followed by d.jpg
, no space). Well, actually, there is a space BEFORE the alphabets but not before the d.) For example, D953 D.JPG
and D953 SHD.JPG
.
我可以使用 dir * shd.jpg
或 dir * d.jpg
列出后者.如何列出前者而不列出后者?
I can list the latter using dir *shd.jpg
or dir *d.jpg
. How do I list the former without listing the latter?
我尝试了 dir *"d" .jpg
, *" d.jpg
, *"d.jpg"
, *?d.jpg
.没有一个.
I have tried dir *" d".jpg
, *" "d.jpg
, *" d.jpg"
, *?d.jpg
. None worked.
推荐答案
引号中必须包含引号.您认为字符串中的引号有什么作用?
The quotes must surround the names. What do you think quotes inside the string do?
dir "* d.jpg"
dir "* shd.jpg"
这篇关于dir命令列出以“;"结尾的文件名d.jpg"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!