T
T
Tesla4o2019-10-15 14:30:33
Windows
Tesla4o, 2019-10-15 14:30:33

How to autostart a program in stealth mode?

I add the program to the registry "Software\Microsoft\Windows\CurrentVersion\Run". in the value I prescribe the full path to the exe file. If you run it manually from a folder, it starts up fine, but when you start the system, the RuntimeRerror break() called error occurs. It feels like the program does not see the files that lie next to it and on which the correct launch depends? And how to run it in the background. Since it is console and is needed for other programs to work.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem @Jump, 2019-10-15
@Tesla4o

It feels like the program does not see the files that lie next to it and on which the correct launch depends?
Why should she see them? Of course he doesn't see it.
She does not know from which folder you run her.
The program searches for files in the folders specified in PATH and in the current folder.
If you do not start manually, there is no current folder.

A
Alexander, 2019-10-15
@NeiroNx

it is better to use the scheduler - you can specify the working folder of the program there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question