Z
Z
zvonok13372018-03-17 09:31:04
C++ / C#
zvonok1337, 2018-03-17 09:31:04

How to make an invisible console application visible?

Hello,
I have a c++ application that runs as a service. It is console and hidden. It contains certain information. If you run this application directly, then you see exactly the same text you need, but it closes due to the fact that it is not running as a service. Hence the question: how to make visible an application running as a service?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
res2001, 2018-03-17
@res2001

Try redirecting standard output and error streams to a file in the service settings, in the application launch command line:
proga.exe 1>praga.log 2>&1
then you will be able to see the entire output of the application without a window in the file. The file must be writable by the user under which the application/service is running.
The settings of all services are stored in the registry in HKLM\System\CurrentControlSet\Services

G
GavriKos, 2018-03-17
@GavriKos

then just the same text is visible, but it closes due to the fact that it is not started as a service

how do you run it as a service? Maybe you should run it through the console? Then it will close, but the exhaust will remain in the console.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question