Created
June 25, 2022 07:50
-
-
Save ichisadashioko/a8098f272b58abf92ab6d8a60cf36cff to your computer and use it in GitHub Desktop.
restore windows game dvr capture location
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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