Delphi delete files mask




















EDIT: Looks like there's a problem with your flags. You need to OR them together, not add them together. It should look like this:. Another option is to build a list of 0-delimited file-paths, and pass that with an extra 0, from msdn :. Although this member is declared as a null-terminated string, it is used as a buffer to hold multiple file names. Each file name must be terminated by a single NULL character.

An additional NULL character must be appended to the end of the final name to indicate the end of pFrom. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 12 years, 2 months ago.

Active 5 years, 2 months ago. Viewed 4k times. Improve this question. Charles Faiga. Charles Faiga Charles Faiga Hope it helps. Thankyou all for your posts. Clive that was well explained. I couldn't have done it better myself. No problem JayZ! Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework. The Tek-Tips staff will check this out and take appropriate action. Click Here to join Tek-Tips and talk with other members! Already a Member? Join your peers on the Internet's largest technical computer professional community.

It's easy to join and it's free. Register now while it's still free! Already a member? Close this window and log in. What you have to do is to set up a list to delete. Then once the list is setup, you can then delete them. Note: Please note that a lot of people think that all you have to do is to build a list then delete them.

This is not true. So, you must clear this first, otherwise the delete will fail. So, if you notice in my routine, I clear any attributes that may have been set for the file. Here is an example:.



0コメント

  • 1000 / 1000