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  |
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++;
}
}
|
|
|
Goto Forum:
Current Time: Sat Sep 06 22:31:55 CEST 2025
Total time taken to generate the page: 0.07805 seconds
|