Counter-Strike 2

Counter-Strike 2

28 ratings
CS:GO Autoexec and exec files
By Tealkine and 1 collaborators
This will explain how to make a csgo exec file or auto exec file
   
Award
Favorite
Favorited
Unfavorite
What is an auto exec/exec file?
An auto exec file automatically runs commands on startup

This is usefull for making a custom crosshair, or for using custom binds.

An exec file runs commands, when run

This is usefull for making specific settings (KZ/Surf), different crosshair.
This can be bound to keys, to make your viewmodel, or any other valid command, runnable with a single keypress.

Creating an autoexec/exec file
Open Notepad

Place all commands you would like to run inside the file

Click save as
MAKE SURE TO SET THE FILE TYPE TO ALL FILES

Save the file as:

autoexec.cfg

or

yourexecname.cfg

Save to:

YOURSTEAMLOCATION\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg


For autoexec files
ONLY DO THIS IF YOU WANT THE EXEC TO RUN ON STARTUP EVERYTIME


Goto your cfg folder
e.g.
(C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg)

Right click config.cfg
Click Properties
UNTICK the READ ONLY option
Edit config.cfg

add exec autoexec.cfg anywhere in the code (preferably at the bottom)

Save

Congrats, you made an autoexec!
Running an exec file
How to run an exec

Turn dev console on in game settings

Open console (~)

Type:

exec (name of file)

To bind the exec file to a key, simply type:

bind key "exec (name of file)"

Some recommended exec files are:








Thank you for reading
~Tealkine


11 Comments
lothor Jun 1, 2021 @ 11:56pm 
kenny S told in one of his video that when he pushes hi auto exec exec automatically how we can do that
R4tonBaveur May 14, 2021 @ 11:18am 
is there a way to add arguments when executing a cfg file?
ÆRGØ May 5, 2019 @ 12:27pm 
Thank you!
Kobe Bryant Jul 1, 2018 @ 12:31pm 
can't bind it
LOL
Lionel "LR17" Ronaldo Dec 29, 2017 @ 3:15pm 
Perfect For me :)
Tealkine  [author] Apr 17, 2017 @ 9:38pm 
@lil pump config.360.cfg is for a xbox360 remote.
late Dec 5, 2016 @ 12:52pm 
AJ Aug 21, 2016 @ 5:24pm 
No it's not because of the amount. It might be that you didn't put in the command properly. I have tons of commands in my auto exec but they still run fine.
Leo Apr 16, 2016 @ 12:30am 
help it says it cannot exec it in console
AJ Dec 29, 2015 @ 2:54pm 
Can I do the same with other cfg files as well? In my example I have a cfg without the name of autoexec.cfg, instead it's named clutchscript.cfg(doesn't execute hacks or anything, just mutes teamates and increases sound) but would I be able to execute it if I added it into the config file or do I need to change the name?