![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I mean, did you make an EA out of a script and try to run it?
The thing is, it's unclear what these flags have to do with FolderClean(). Not at all, in my opinion.
I want to prove that it's not about the file at all. I'll re-do the script so that it creates a "DeleteMe.txt" folder instead of the "notempty" folder, and then it erases this folder, just like it tried to do with the file before. Let's see if it makes a difference).
The thing is, it's unclear what these flags have to do with FolderClean(). Not at all, in my opinion.
a folder can be deleted if there are no files in it, or if it can be removed. These flags allow access to the file
I mean, did you make an EA out of a script and try to run it?
Where did I say I made an EA?
I have to say that indeed, explicitly closing the file works. I guess I was wrong. The first time it didn't work, probably because I didn't save a new version of the redesigned script and the explicit closure didn't take effect.
Now I've tried creating folders instead of a file. They erased without any problems.
Then added file creation again. Result: Without explicitly closing the file, the folder is not erased by the script as before. With explicit closing of the file, it is erased completely.
Of course, this experience doesn't explain everything and some things remain hazy for now, but this result is inspiring.
I'll keep testing and will report back with results.
There may still be problems, and it's hard to say for sure right now.
Where did I say what the councillor did?
Here is the code of the script that creates both "DeleteMe.txt" and "DeleteMe Folder" file. The file explicitly closes immediately after creation.
Everything seems to work...
Of course, this experience doesn't explain everything and some things remain vague so far, but this result is inspiring.
I will continue testing and will report back with results.
There may still be problems and it's hard to say for sure at the moment.
Yes, of course you can, and keep the details to yourself, just say "I have changed the example from the help, nothing at all".
And we'll keep guessing - because anyone can guess with logs. And it's much more interesting that way.
Yes, of course, write. And the details keep to themselves, just say "I have changed a little example of help, nothing at all.
And we'll keep guessing - after all, with logs anyone can guess, and it's much more interesting that way.
Weird. It's nothing personal. If I'm being unprofessional, I'm sorry. I'll learn.
Thanks for your help.
P.S. I've just never asked for help on the forum. Hence the inexperience.
I remember your "I have all the moves written down" in the OOP vs procedural programming thread. In this thread I was just convinced that you cannot be trusted.
There is no proof and no details - no need to write to servicedesk.