Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1550
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
Unfortunately, your code didn't work for me.
I don't know how to help you.
I checked it again, it works.
As you can see, it copies anywhere and with different names and even with a change of extension.
PS Check for a file, maybe you are confused somewhere.
paste in the beginning of the script
I don't know how to help you.
Checked it again, it's working.
As you can see it copies anywhere and with different names and even with extension change.
PS Check for a file, maybe you are confused somewhere.
paste in the beginning of the script
Thanks for the humour!
I'll check it tonight
Thanks for the humour!
I'll check it out tonight
I added your humour to the script and this is what happened:
Although there is a File.csv file in the Files folder, the script doesn't see it and prints:
Fuck off, there is no such file in the folder!
false
false
false
Just fantastic!!!
Just fantastic!!!
There's no such thing as fantastic.
Make the folder properties visible file extension.
As I see you have a file named File.csv.txt, and you are trying to find File.csv, of course you can't find it.
The fiction continues.
I took a sample script from FileCopy documentation.
I supplemented it with your check for file existence.
The result is the same - the script does not see the file.
Hello, Alexander.
There must be some reason for such behaviour. It is necessary to put forward hypotheses and test them sequentially. For example:
The fiction continues.
Onemore time. You need to name a file with the extension of that file.
You have created a file with the extension .txt and the name File.csv
So the full name of the file to be specified in the programme will be File.c sv .txt.
You have disabled display of file extensions in the folder properties in Windows, that's why you have such a confusion with file names.
There is no fantasy.
Make the file extension visible in the folder properties.
As I see you have a file named File.csv.txt, and you are trying to find File.csv, of course you can't find it.
Thank you very much! That was the problem. Without you I would not have been able to find the error. I wish you success!
Alexander, good afternoon!
It turns out that the file must be closed before rewriting it from the sandbox to the Tester folder.
Otherwise it doesn't work.
It took me a long time to figure it out!!!
Regards, Alexander
Alexander, good afternoon!
It turns out that the file must be closed before rewriting it from the sandbox to the Tester folder.
Otherwise it doesn't work.
What if it does? ))))
Provided that there is no file with that name in the destination folder.