BetoValle Messages: 204 Registered: September 2020 Location: Brasil Valinhos SP
Experienced Member
Hi, again ...
with the command "dir" in windows 10 and I really couldn't!
I tested with the parameters below and finally I was successful!
important to point out that I had to modify a parameter in the backup command: replace the ">" with "--result-file="
With ">" Sys was not interpreting correctly and displayed message charging "a table".
I understand that the Sys routine is welcome for the purpose of creating a log file. On the other hand, creating a progress bar probably won't work given the processing delay.
String output;
String fdump="C:\\Program Files (x86)\\MariaDB 10.1\\bin\\mysqldump.exe";
String xparams=" -u mylogin --password=mypass--verbose --extended-insert=FALSE databaseName";
String tofile=" --result-file=C:\\TEMP\\file1.sql";
String s;
s << fdump;
s << xparams;
s << tofile;
Sys(s,output);
Vector<String> lines = Split(output, "\n");
String x;
int i = 1;
for(auto& line : lines) {
x << Format("Line #%d: %s\n", i, line);
i++;
}
Led.SetData(x); // Led is LineEdit!