Quote from
Bagon on August 12, 2023, 4:01 pm
There is a program without a GUI that needs to be included in the project of a new program being created. This process can only be controlled externally, starting and killing the process. When creating, I encountered the problem of killing this process using the taskkill cmd command, the program is not killed due to insufficient rights, although my project is launched as an administrator and the checkbox requires administrator rights is checked in the VisualNEO properties. The created program at startup does not require administrator rights and does not terminate the process, it creates an endless loop of attempts to terminate the process. task list | find /i "notepad.exe" && taskkill /f /t /im "notepad.exe" the command used works as a bat file but doesn't work properly in VisualNEO. How to make it work, or suggest other options for solving the problem.
There is a program without a GUI that needs to be included in the project of a new program being created. This process can only be controlled externally, starting and killing the process. When creating, I encountered the problem of killing this process using the taskkill cmd command, the program is not killed due to insufficient rights, although my project is launched as an administrator and the checkbox requires administrator rights is checked in the VisualNEO properties. The created program at startup does not require administrator rights and does not terminate the process, it creates an endless loop of attempts to terminate the process. task list | find /i "notepad.exe" && taskkill /f /t /im "notepad.exe" the command used works as a bat file but doesn't work properly in VisualNEO. How to make it work, or suggest other options for solving the problem.