Em um diretório, tenho 3 arquivos, todos com a extensão de arquivo incorreta jpgJPG
.
Quando digito dir *.j
não obtenho resultados, como esperado.
Quando digito dir *.jp
não obtenho resultados, como esperado.
Mas quando eu digito dir *.jpg
ele lista os 3 arquivos, mesmo que a extensão jpg
não corresponda jpgJPG
.
Por que o Dir
comando está se comportando dessa maneira?
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)>