Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » evaluate command line (parse line by line processed command to create backup log)
Re: evaluate command line [message #58689 is a reply to message #58688] Fri, 22 July 2022 18:21 Go to previous messageGo to previous message
BetoValle is currently offline  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!



Thanks jjackson!
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: log file in Oracle8
Next Topic: Windows 11 toolbar and menu issues
Goto Forum:
  


Current Time: Wed May 14 05:28:37 CEST 2025

Total time taken to generate the page: 0.04213 seconds