Command
exec
<File Name>Explore usage, syntax, and examples for the exec CS2 developer console command.
exec
CS2 and CSGOexec
<File Name>Runs the specified script file to execute a list of commands. Place your script files in the \Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg\ folder. You only need to provide the file name without the .cfg extension.
Specify the name of the script file in the cfg folder to run, without including the .cfg extension.
No
Client
Server
exec Generator
exec
<File Name>Set the options below to auto-generate your command. When everything looks good, click the Copy button and paste it into your in-game console.
exec Examples
exec
autoexec
This command runs all commands in the "autoexec.cfg" file located in the cfg folder. You only need to type exec autoexec, excluding the .cfg extension.