How to start a Visual Studio VB application with High priority

Floyd Sense 0 Reputation points
2023-02-14T13:57:48.7533333+00:00

I have two Windows 11 applications that exchange time dependent information via virtual serial ports. Running them at normal priority results in unacceptable time delays in the exchange, but running them at High priority results in acceptable performance. One of the applications is an EXE file that's started with this string in the Target field of the shortcut properties: C:\Windows\System32\cmd.exe /c start "NaP3" /High "C:\Program Files (x86)\NaP3\NaP3.exe".

The second application was written in Visual Studio 2022 in VB and the executable is of the form: programname.application. If I use this to start that application:

C:\Windows\System32\cmd.exe /c start "Orion Translator.application" /High "C:\Orion Translator\Orion Translator.application"

It starts OK, but the priority is not set to High - it shows as Normal. So, the question is: is there some way to start such applications and assign priority as with .exe applications?

When I look at the application priority using Task Manager, it shows the program name to be: Orion Translator.exe.

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,161 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.