1

I use the code below for detecting desired files:

uses Masks;
 
begin
  if MatchesMask(MyFilename, '*.Exe') then
  begin
    // Do Something
  end;
end;

However, as stated in the official documentation, MatchesMask is case-insensitive.

Is there any case-sensitive way to detect filenames using wildcards? (I'm using Delphi 10.3.3 VCL)

Xel Naga
  • 826
  • 11
  • 28

1 Answers1

0

that's fine ?

Maybe you can do This. Convert all to Uppercase.

uses Masks;
 
begin
  if MatchesMask(Upper(MyFilename)), Upper('*.Exe')) then
  begin
    // Do Something
  end;
end;