I'd like to be able to copy a gif file from the /experts/files folder to an external folder in windows, within an EA - has anyone got something that does this.
thx
thx
Please Help! No Expert Folder in MT4 Folder 12 replies
Where is the Experts and Indicators Folder 10 replies
Need Help with FileMove from Common Folder to Common Folder 3 replies
Reading/writing files in any folder - MT4 build 600+ 0 replies
experts advisor file not in experts folder 12 replies
DislikedI'd like to be able to copy a gif file from the /experts/files folder to an external folder in windows, within an EA - has anyone got something that does this.
thxIgnored
DislikedYou could possibly use the ShellExecute command to call Windows' cmd.exe and execute a copy. I've never attempted anything like this, so I'm afraid you're on your own.Ignored
#import "shell32.dll" int ShellExecuteA(int hwnd, string lpOperation, string lpFile, string lpParameters, string lpDirectory, int nShowCmd); #import ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... string FilesFolder = "c:\MT4 Pepperstone\experts"; ShellExecuteA(NULL, "open", FilesFolder+"execute.bat", "", FilesFolder, 3);
copy *.gif c:\destination_folder exit
Dislikedi've gone the route of using ShellExecute and its working a charm,Ignored
DislikedI'd like to be able to copy a gif file from the /experts/files folder to an external folder in windows, within an EA - has anyone got something that does this.
thxIgnored