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 #58693 is a reply to message #58692] Sat, 23 July 2022 01:51 Go to previous message
BetoValle is currently offline  BetoValle
Messages: 205
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
ok! very good! now work with command "dir".

"Sys" on windows 10, no console window opens!

CONSOLE_APP_MAIN  
{
    String output;
    Sys("cmd.exe /c dir c:\\temp", output);
    Cout() << "aqui " << output << EOL;   
    Vector<String> lines = Split(output, "\n");

    int i = 1;
    for(auto& line : lines) {
        Cout() << Format("Line #%d: %s\n", i, line);
        i++;
    }
}

 
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: Sat Sep 06 22:31:55 CEST 2025

Total time taken to generate the page: 0.07805 seconds