bool SendFTP(string filename, string ftp_path=NULL)
Sends the file to the FTP server set in the Tools->Options->Publisher
tab. If the attempt fails, it return FALSE.
Tools > Options > Publisher タブに設定された FTPサーバーにファイルを送信します。もし、失敗した場合は、FALSE
を返します。
The function does not operate in the testing mode. This function cannot
be called from custom indicators, either.
この関数はテストモードでは動作しません。この関数は、カスタム インディケータからも呼び出すことはできません。
The file to be sent must be stored in the terminal_directory\experts\files
folder or in its sub-folders.
送信するファイルは、terminal_directory\experts\files フォルダまたはサブフォルダに格納する必要があります。
It will not be sent if there is no FTP address and/or access password specified in settings.
もし、FTP アドレスやアクセス パスワードの設定で指定がない場合は送信されません。
Parameters:
パラメータ:
| filename |
- |
File to be sent.
送信するファイル。 |
| ftp_path |
- |
FTP path. If the path has not been specified, the path described in settings will be used. FTP パス。パスが指定されていない場合は、設定に記述されたパスが使用されます。 |
|
Sample:
サンプル:
int lasterror=0;
if(!SendFTP("report.txt"))
lasterror=GetLastError();
|