Grand Theft Auto V Legacy

Grand Theft Auto V Legacy

116 ratings
GTA V .bat File: Automatically set GTA5.exe to high priority [UPDATED | 2020]
By medeiros
Make sure your game is running at its full potential with this simple .bat file that launches GTA5.exe in high priority, while setting launcher-related processes to low priority. You can even add other tasks!
Fully compatible with mods and everything else.
  • 2020 update: this guide was created 5 years ago, and the processes that GTA V used back then were different for its launcher, so the guide has been updated with new codes for the .bat file.
   
Award
Favorite
Favorited
Unfavorite
Creating the batch file
A batch file is an unformatted text file that contains one or more commands and has a .bat or .cmd file name extension.

To create one, you can use the Windows Notepad or Notepad++[notepad-plus-plus.org]. In this tutorial I'll be using the latter, but the procedure is the same.

The batch file
• Create a new .txt file and insert the following in it:
start steam://rungameid/271590 timeout 120 wmic process where name="GTA5.exe" CALL setpriority "high priority" wmic process where name="Launcher.exe" CALL setpriority "idle" wmic process where name="PlayGTAV.exe" CALL setpriority "idle" wmic process where name="SocialClubHelper.exe" CALL setpriority "idle" wmic process where name="RockstarService.exe" CALL setpriority "idle"

Explanation
  • start steam://rungameid/271590 - starts Grand Theft Auto V through Steam
  • timeout 120 - closes the batch file window 120 seconds after its been opened. This is to give your PC some time to launch the game, to then apply the priorities below to the processes. Change this to a higher value if your game doesn't open before this timer ends.
  • wmic process where name="GTA5.exe" CALL setpriority "high priority" - set GTA5.exe to high priority
  • wmic process where name=Launcher.exe" CALL setpriority "idle" - set GTA V's launcher to low priority (aka idle) - the Launcher itself will still work! Knowing this, the other lines below are self-explanatory.

Saving it
• In Notepad, you need to save it with "All Files" selected, and then proceed to rename the file and add .bat to it.
• In Notepad++, you can save it as a batch file right away, as seen above.
Adding an icon to the batch file
Want to have the batch file in your desktop but dislike the ugly icon that comes with it? Then do this:

1. Put the batch file anywhere but the place you want to launch the game from (in my case, I put the batch file in my Steam\steamapps\common folder, while I launch the game from the shortcut in my desktop which I'll explain later).
2. Right-click it, press Send to and then Desktop (create shortcut).
3. Go to your desktop, right-click the shortcut, go to Proprieties and then the Shortcut tab. Press Change Icon..., then Browse... and find GTA5.exe, which should be in %ProgramFiles% (x86)\Steam\steamapps\common\Grand Theft Auto V\.


And there you have! Now launch your game through this shortcut (always Run as administrator) every time and it will be set to high CPU priority automatically.
If you have a nice processor, you probably don't need to do this, but hey, why not? Also, I've read that this helped people with weak CPUs/notebooks to have less stuttering, so why not give it a try? :)
48 Comments
76561199114111969 26 Dec, 2020 @ 11:22pm 
How do you change the amount of money in the patch files for GTA V Online?
medeiros  [author] 18 Apr, 2020 @ 8:28am 
--- Guide updated for 2020 ---
HellFire 8 Jan, 2018 @ 11:52pm 
can I add this batch lines into a existed batch file?
so007 2 Jan, 2018 @ 5:35am 
i have an i3 4170 rated at 3.70 ghz. with this batch file the game is boosted by at least ten frames which is a lot
[N]* 24 Aug, 2017 @ 10:30am 
In case that the launcher takes more than 45 seconds to start the game, what do I need to do?
AllADream 17 May, 2017 @ 1:12pm 
Doesn't seem to work for me either. Processes still at normal priority. Windows 10. Any ideas?
Darthdude 26 Apr, 2017 @ 6:42am 
doesn't work, ran the batch file then opened task manager to check, all gtav processes and sub processes still at normal priorty, running window 7 64bit
Liam93o 18 Mar, 2017 @ 9:03am 
how do you do this if you own gta on siscs like me not the steam version?
Rei Caixa 8 Mar, 2017 @ 10:23am 
Guys, I've found a bunch of videos and topics full of people that upgraded to Windows 10 and had issues on GTA V with enormous lags and stuttering.

I bought a 970, I was expecting things to be better than before, but I also upgraded to Windows 10. GTA V was so freaking horrible to play even on the minimum settings.

So be advised, if you like GTA V do NOT get Windows 10, cause there is a high chance you will face these issues too.

Fuck Rockstar btw
=TBM= Nestor 27 Sep, 2016 @ 7:33am 
I created a guide based on yours. Link: http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=770861814