Priority of Kodi in windows task manager.
#1
Hi,

I have a weak computer so I prioritize Kodi to "above normal" in the task manager.
Is there a way to make it as a default so Kodi will automatically be at "above normal" priority?
Reply
#2
You could create a .bat file as a shortcut to kodi for that:

Code:
cmd.exe /c start "Program Name" /priority "Full path of application file"

Honestly haven't tested it though.
Reply
#3
(2015-10-05, 16:18)Fail$tyle420 Wrote: You could create a .bat file as a shortcut to kodi for that:

Code:
cmd.exe /c start "Program Name" /priority "Full path of application file"

Honestly haven't tested it though.
Thanks but its not working.
It say
Code:
Invalid switch - "/priority".
Reply
#4
(2015-10-13, 16:33)ymca Wrote:
(2015-10-05, 16:18)Fail$tyle420 Wrote: You could create a .bat file as a shortcut to kodi for that:

Code:
cmd.exe /c start "Program Name" /priority "Full path of application file"

Honestly haven't tested it though.
Thanks but its not working.
It say
Code:
Invalid switch - "/priority".

LOL, ok, here you go then:

Code:
cmd.exe /c start Kodi /REALTIME "full path of application file"


You need to change priority to whatever priority you want. Here are your options:

/LOW
/NORMAL
/HIGH
/REALTIME
/ABOVENORMAL
/BELOWNORMAL
Reply
#5
The application Prio can do this as well, it's free, and you can have it memorize when programs get which priorities even after you reboot.
Reply
#6
(2015-10-13, 20:35)DJ_Izumi Wrote: The application Prio can do this as well, it's free, and you can have it memorize when programs get which priorities even after you reboot.

Prio does have incompatibilities with various programs, so you will have to test that it works in your environment. For example, you can't start a VirtualBox VM with >1.4GB RAM allocated if you have Prio installed (found this out the hard way - can't use it on my development box).

https://www.virtualbox.org/ticket/11039

OTOH if your other applications aren't incompatible with then Prio is fantastic.
Reply
#7
(2015-10-13, 19:33)Fail$tyle420 Wrote:
(2015-10-13, 16:33)ymca Wrote:
(2015-10-05, 16:18)Fail$tyle420 Wrote: You could create a .bat file as a shortcut to kodi for that:

Code:
cmd.exe /c start "Program Name" /priority "Full path of application file"

Honestly haven't tested it though.
Thanks but its not working.
It say
Code:
Invalid switch - "/priority".

LOL, ok, here you go then:

Code:
cmd.exe /c start Kodi /REALTIME "full path of application file"


You need to change priority to whatever priority you want. Here are your options:

/LOW
/NORMAL
/HIGH
/REALTIME
/ABOVENORMAL
/BELOWNORMAL

Tried this in a bat file:
Code:
cmd.exe /c start "Kodi" /ABOVENORMAL "C:\Program Files (x86)\Kodi"
Also tried start "Kodi.exe".

Nothing happens.
Reply
#8
(2015-10-14, 13:13)ymca Wrote: Tried this in a bat file:
Code:
cmd.exe /c start "Kodi" /ABOVENORMAL "C:\Program Files (x86)\Kodi"
Also tried start "Kodi.exe".

Nothing happens.

Try this:
Code:
cmd.exe /c start "Kodi" /ABOVENORMAL "C:\Program Files (x86)\Kodi\Kodi.exe"
Reply
#9
(2015-10-14, 15:23)retroflex Wrote:
(2015-10-14, 13:13)ymca Wrote: Tried this in a bat file:
Code:
cmd.exe /c start "Kodi" /ABOVENORMAL "C:\Program Files (x86)\Kodi"
Also tried start "Kodi.exe".

Nothing happens.

Try this:
Code:
cmd.exe /c start "Kodi" /ABOVENORMAL "C:\Program Files (x86)\Kodi\Kodi.exe"
Still not working.
Code:
windows cannot find 'c:\Program files (x86)\Kodi.exe'. Make sure you typed the name correctly, and then try again.

Maybe there is something wrong with the space between these words and the computer cannot handle spaces?
Code:
Program files (x86)
Reply
#10
I'm not sure, I just used this and it worked flawlessly:

cmd.exe /c start "Kodi" /ABOVENORMAL "D:\Portable Installs\Kodi\kodi.lnk"

That was from RUN, not cmd though.

*EDIT* typed it exactly the same in cmd and NO problems.
Reply
#11
It's working Smile
Thanks.

The problem was that I was trying this
cmd.exe /c start "Kodi" /ABOVENORMAL "C:\Program Files (x86)\Kodi

Instead of this
cmd.exe /c start "Kodi" /ABOVENORMAL "C:\Program Files (x86)\Kodi\Kodi

I just saw your Kodi.exe change Smile

P.s.

Windows cannot pin batch file to start menu so I make a short cut of Kodi.exe and in the target box I pasted the cmd line.
Reply
#12
(2015-10-15, 10:36)ymca Wrote: It's working Smile
Thanks.

The problem was that I was trying this
cmd.exe /c start "Kodi" /ABOVENORMAL "C:\Program Files (x86)\Kodi

Instead of this
cmd.exe /c start "Kodi" /ABOVENORMAL "C:\Program Files (x86)\Kodi\Kodi

I just saw your Kodi.exe change Smile

P.s.

Windows cannot pin batch file to start menu so I make a short cut of Kodi.exe and in the target box I pasted the cmd line.

Awesome! Glad it worked out for you!
Reply
#13
thx for the hint i have been trying to get it to run faster i have a old 1.4gb pc laying around so i thought i would turn it into a tv box but it runs so slow and takes for ever to scan as well so i have been trying to get any helpful hints i can read and pick up
Reply

Logout Mark Read Team Forum Stats Members Help
Priority of Kodi in windows task manager.0