exec Command

Explore usage, syntax, and examples for the exec CS2 developer console command.

exec

CS2 and CSGO

Command

exec

<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.

<File Name>

Specify the name of the script file in the cfg folder to run, without including the .cfg extension.

sv_cheats Required

No

Client or Server Command

Client

Server

exec Generator

Command

exec

<File Name>
0/1 Arguments Selected

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

Command

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.

exec Command