CS2 & CS:GO exec Command

CS:GO & CS2 Compatible
exec <File Name>

This command will execute the specified script file (e.g. exec autoexec.cfg). You do not need to specify the .cfg file extention (i.e. you'd write just exec example for example.cfg). Place script files in the \Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg\ folder.

Argument Information

The syntax for this command is as follows:
Name Description
File Name

The name of the file, which is located in \Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg\ that you want to execute. If the file exention is .cfg, you only need to specify the file name (not the .cfg part).

Extra Information

Find additional information relating to this command below.
sv_cheats Required
No
Client or Server Command
Both
Total CS is the home of CS2 commands We boast the only complete, up-to-date database of all CS2 console commands. View All CS2 Commands
CS2 player
Ad

Command Generator

Adjust the settings below to automatically generate a command. Once you've got everything right, hit the Copy button and paste it into the console in CS:GO.

exec <File Name>
0/1 arguments filled
File Name

exec Examples

exec autoexec

This command would execute the list of commands in the file "autoexec.cfg" (you don't need to specify the .cfg). The autoexec.cfg file would be located at \Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg\autoexec.cfg.