Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #To run this script: execute "powershell.exe set-executionpolicy remotesigned" as Administrator
- #Description: This script finds existing demo files and sets the customrecord alias accordingly
- [int]$myInt = ((Get-childitem "C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\*.*" -include *.dem | Sort-Object name -descending | Select-Object -first 1).ToString() | %{ $_.Split('_')[1] }).substring(0,2)
- $myInt=($myInt + 1)
- invoke-expression "& 'C:\Program Files (x86)\Steam\steam.exe' -applaunch 730 +exec autoexec.cfg +alias `"customrecord record$myInt`" "
Advertisement
Add Comment
Please, Sign In to add comment