I wrote some Powershell scripts to make things easier.
If you do not know where your cfg
folder is, run these in order. Replace "G:\Program Files (x86)"
with wherever your Steam games are located.
First extract the path of your autoexec.cfg
from the raw file link in your gist. For example the one here would look like below and set it into the variable $rawFilePath
PS C:\Users\PC> $rawFilePath = "https://gist.githubusercontent.com/augbog/6b0377d0192a2dea870a60c8001cffac/raw/7d7f9667357866e66d078349b2b44c1704c27fda/autoexec.cfg"
Then after defining that run these in order.
PS C:\Users\PC> $pathVar = $(Get-ChildItem "G:\Program Files (x86)" -filter "Counter-Strike Global Offensive" -Recurse -Directory -ErrorAction SilentlyContinue | Select-Object -Property FullName).FullName
PS C:\Users\PC> $finalPath = "$pathVar\csgo\cfg\autoexec.cfg"
PS C:\Users\PC> Invoke-WebRequest -Method Get -Uri $rawFilePath -OutFile $finalPath
If you do know where your cfg
folder is, feel free to only run the last line and replace $finalPath
with the actual path.