blackretina

csgo_demorecord

Oct 9th, 2012
851
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #To run this script: execute "powershell.exe set-executionpolicy remotesigned" as Administrator
  2. #Description: This script finds existing demo files and sets the customrecord alias accordingly
  3. [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)
  4. $myInt=($myInt + 1)
  5. 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