📜  屏幕截图文件夹已删除 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:25.153000             🧑  作者: Mango

代码示例1
taskkill /f /im explorer.exe

timeout /t 2 /nobreak >nul

if not exist "%UserProfile%\Pictures\Screenshots" mkdir "%UserProfile%\Pictures\Screenshots"

reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "{B7BEDE81-DF94-4682-A7D8-57A52620B86F}" /t REG_EXPAND_SZ /d %%USERPROFILE%%"\Pictures\Screenshots" /f

attrib +r -s -h "%USERPROFILE%\Pictures\Screenshots" /S /D

timeout /t 1 /nobreak >nul

start explorer.exe