File size: 285 Bytes
128a135
 
d8b42be
128a135
1
2
3
4
5
@echo off
for /f %%i in ('powershell -command "Get-CimInstance Win32_VideoController | ForEach-Object { $i = 0 } { if ($_.Name -match 'Graphics') { $i } else { $i++ } }"') do set GPU_INDEX=%%i
start "" ".\AutoO.exe" -RenderOffscreen -nosound -log -graphicsadapter=%GPU_INDEX%
exit