|
|
Регистрация Восстановить пароль |
Регистрация | Задать вопрос |
Заплачу за решение |
Новые сообщения |
Сообщения за день |
Расширенный поиск |
Правила |
Всё прочитано |
|
|
Опции темы | Поиск в этой теме |
12.05.2024, 02:23 | #11 | |
ПШП
Участник клуба
Регистрация: 15.07.2013
Сообщений: 1,894
|
Цитата:
|
|
12.05.2024, 02:35 | #12 |
Разъяснятор
Форумчанин
Регистрация: 21.04.2022
Сообщений: 126
|
Нашёл вот тут принципиально другое решение (переделал под себя), по сравнению с большинством описанных в интернете.
Код:
Код:
|
12.05.2024, 03:04 | #13 | |
Разъяснятор
Форумчанин
Регистрация: 21.04.2022
Сообщений: 126
|
Одновременно с запуском cmd.exe или 7z.exe запускается conhost.exe
Про этот процесс: Цитата:
|
|
12.05.2024, 05:32 | #14 |
Разъяснятор
Форумчанин
Регистрация: 21.04.2022
Сообщений: 126
|
При запуске "консольного" приложения запускается conhost.exe, который фактически отвечает за работу консоли. То есть то, что я вижу в окне cmd - реально результат 7z.exe > conhost.exe > экран. Соответственно 7z отправляет по какому-то особому каналу отображение процентов упаковки процессу conhost, который уже выводит его в консоль cmd. Соответственно нужно либо выявить канал, по которому 7z отправляет проценты, либо перехватить их из conhost.exe.
Верные размышления? |
12.05.2024, 16:42 | #15 | |
Просветитель
Участник клуба
Регистрация: 26.12.2012
Сообщений: 1,834
|
Цитата:
Нет, неверные. Вот верные: Код:
|
|
|
Похожие темы | ||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
Отмена при CTRL+С закрытия консоли | Tahoma | Общие вопросы C/C++ | 8 | 31.07.2017 17:47 |
После ошибки окно консоли закрывается и я не могу посмотреть, что за ошибка. | NAN_13 | Общие вопросы Delphi | 10 | 30.03.2017 01:29 |
Вывод из консоли в Memo | hotcooler17 | Win Api | 3 | 05.02.2010 20:51 |
Читает вывод из консоли | Consol | Win Api | 10 | 31.08.2009 08:42 |
Как захватить весь вывод в консоли??? | alexfmf | Общие вопросы Delphi | 5 | 13.05.2009 21:54 |