Download MetaTrader 5
To add comments, please log in or register
Make screenshots in MetaTrader and manage them in the gallery!
Kashif Javed
824
Kashif Javed 2014.11.19 10:42 
#import "kernel32.dll"
   int CreateFileW(string, uint, int, int, int, int, int);
   int GetFileSize(int, int);
   int ReadFile(int, uchar&[], int, int&[], int);
   int CloseHandle(int);
#import

How can I create a folder( e,g "AAAA") inside System Drive(Windows Drive)?
How to create a file inside "AAAA" folder?
How to read that file created in AAAA folder?

I was using this https://www.mql5.com/en/articles/1540 but now it does not work in build 600+
I tried but no success. Any help please.
Halley
198
Halley 2014.11.19 12:11  

For guessing the correct system drive I read the "COMMON" data path variable, which I assume to lead to the system drive.

For placing a new directory I use kernel32::CreateDirectoryW command.

For creating a file inside the directory I use kernel32::CreateFileW command.

/
To add comments, please log in or register