Re: WildCard Key

Tech-Archive recommends: Fix windows errors by optimizing your registry



I have a std::list that holds a list of disallowed filenames. So when
the client creates a file, the service checks if it's in this list and
if so, it deletes the file. Currently, it's fast and efficient, in a
second, I can check if the key (the filename) exists in the list and
act accordingly if so.

But I have a new need to support filenames based on wildcards. So the
list may contain notepad*.exe and is supposed to block anything that
matches.

As an alternative to Brian's suggestion, could you turn the solution
inside out and use FindFirstFile to detect a filename matching your
wildcard entries?

Dave
.



Relevant Pages

  • Troubleshooting the client program
    ... Below is my client program...I put all the filenames in a directory ... the difference between 2 files by counting line and insert differ lines ... #list all the filename in the sampleStorage into filename.log ... #the autoflush method is used on the socket because otherwise the ...
    (perl.beginners)
  • Re: SMS Software inventory
    ... removed from the client machine? ... You can use this sample wql query for getting all the machines with a *acro* ... - My approach for that task is to use software inventory. ... inventory on the site and added the filename acrobat.exe on the Inventory ...
    (microsoft.public.sms.admin)
  • Re: How to show path at top of document?
    ... Word MVP web site http://word.mvps.org ... particularly true when the doc relates to a client, ... distributed among many folders, given the variety of services I offer. ...
    (microsoft.public.word.docmanagement)
  • Re: Does a file exist?
    ... for this kind of things I use the Win32 API FindFirstFile (of course, ... WIN32_FIND_DATA findData; ... HANDLE hFind = FindFirstFile(filename, &findData); ... FindClose(hFind); ...
    (microsoft.public.vc.mfc)
  • Re: encrypting a string (and server varaibles)
    ... For each file you make accessible to the client, create a hash and store the (hash, filename) pair in the session. ...
    (comp.lang.php)