If CS2 Autoexec is not working on your PC, this post may help. Counter-Strike 2 comes with major technical improvements over Global Offensive, which includes a new game engine, improved graphics and ...
If you saved it as a .cfg file, make sure the full name is autoexec.cfg and not autoexec.cfg.txt or something sneaky like that.