在一个目录中,我有 3 个文件,所有文件扩展名都不正确jpgJPG
。
正如预期的那样,当我输入时dir *.j
,我没有得到任何结果。
正如预期的那样,当我输入时dir *.jp
,我没有得到任何结果。
但是当我输入时dir *.jpg
,它会列出 3 个文件,即使扩展名jpg
不匹配jpgJPG
。
为什么Dir
命令会这样表现?
C:\Temp\MediaOrganizer Test Output with Location\2003-10-23 (Temp)>dir
Volume in drive C has no label.
Volume Serial Number is 0655-281E
Directory of C:\Temp\MediaOrganizer Test Output with Location\2003-10-23 (Temp)
11/17/2024 10:55 AM <DIR> .
11/17/2024 10:55 AM <DIR> ..
11/17/2024 10:55 AM 897,472 100_0001.jpgJPG
11/17/2024 10:55 AM 966,582 100_0002.jpgJPG
11/17/2024 10:55 AM 1,115,885 100_0003.jpgJPG
3 File(s) 2,979,939 bytes
2 Dir(s) 104,095,875,072 bytes free
C:\Temp\MediaOrganizer Test Output with Location\2003-10-23 (Temp)>dir *.j
Volume in drive C has no label.
Volume Serial Number is 0655-281E
Directory of C:\Temp\MediaOrganizer Test Output with Location\2003-10-23 (Temp)
File Not Found
C:\Temp\MediaOrganizer Test Output with Location\2003-10-23 (Temp)>dir *.jp
Volume in drive C has no label.
Volume Serial Number is 0655-281E
Directory of C:\Temp\MediaOrganizer Test Output with Location\2003-10-23 (Temp)
File Not Found
C:\Temp\MediaOrganizer Test Output with Location\2003-10-23 (Temp)>dir *.jpg
Volume in drive C has no label.
Volume Serial Number is 0655-281E
Directory of C:\Temp\MediaOrganizer Test Output with Location\2003-10-23 (Temp)
11/17/2024 10:55 AM 897,472 100_0001.jpgJPG
11/17/2024 10:55 AM 966,582 100_0002.jpgJPG
11/17/2024 10:55 AM 1,115,885 100_0003.jpgJPG
3 File(s) 2,979,939 bytes
0 Dir(s) 104,095,875,072 bytes free
C:\Temp\MediaOrganizer Test Output with Location\2003-10-23 (Temp)>