Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ichisadashioko/a8098f272b58abf92ab6d8a60cf36cff to your computer and use it in GitHub Desktop.
Save ichisadashioko/a8098f272b58abf92ab6d8a60cf36cff to your computer and use it in GitHub Desktop.
restore windows game dvr capture location
taskkill /f /im explorer.exe
timeout /t 2 /nobreak >nul
if not exist "%UserProfile%\Videos\Captures" mkdir "%UserProfile%\Videos\Captures"
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "{EDC0FE71-98D8-4F4A-B920-C8DC133CB165}" /t REG_EXPAND_SZ /d %%USERPROFILE%%"\Videos\Captures" /f
attrib +r -s -h "%USERPROFILE%\Videos\Captures" /S /D
timeout /t 1 /nobreak >nul
start explorer.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment