Troubleshooting autoexec.cfg
If the autoexec.cfg is not working & your game isn't finding the autoexec.cfg at all, even when type "exec autoexec.cfg" (without the ") in the console. You can try the following fixes:
OPTION 1:
There has been a problem in CS:GO since the release (this may also help in l4d2 if you are having problems), that the configs are loaded in a wrong order. The easiest way to avoid that problem, is adding host_writeconfig as the last line in your autoexec and making sure, that your config isn’t set to read-only. The command overwrites any cvars in the config.cfg with the ones in the autoexec.cfg when the autoexec is executed.
OPTION 2:
You may need to rename it to something else, for eg: "basic.cfg" (without the ").
Put the basic.cfg in:
Steamsteamappscommonleft 4 dead 2left4dead2cfg
Then you need to get the basic.cfg to execute, here are 2 ways to do this:
A. Change Set launch options to execute basic.cfg automatically when your game opens:
Go to your Steam LIBRARY
Right click on Left 4 Dead 2
Select properties
In the GENERAL tab, click SET LAUNCH OPTIONS...
Type " +exec basic" (without the ")
Click OK
B. Type: "exec basic" (without the ") in the console everytime you open your game.
OPTION 3:
Go to this file: Steamsteamappscommonleft 4 dead 2left4dead2cfgconfig.cfg
Edit the config.cfg. Add exec autoexec.cfg to your config.cfg file. Click save.
Also make the file read only:
right click on config.cfg
Select properties
In the General tab tick the box next to Read-only
Click on Apply
OPTION 4:
Go to this file: Steamsteamappscommonleft 4 dead 2left4dead2cfgconfig.cfg
Edit the config.cfg. Copy your settings in your autoexec.cfg paste them on a new line in the config.cfg file.
Also make the file read only:
right click on config.cfg
Select properties
In the General tab tick the box next to Read-only
Click on Apply