@echo off
setlocal ENABLEDELAYEDEXPANSION
echo Cleaning up shader cache, D3DSCache, and NVIDIA DXCache folders...
REM Initialize counters
set /a "helldiversCount=0"
set /a "d3dCacheCount=0"
set /a "nvidiaCacheCount=0"
REM Count and delete files in Helldivers2 shader cache
for /f %%a in ('dir "%APPDATA%\Arrowhead\Helldivers2\shader_cache\*" /a:-d /b /s 2^>nul ^| find /c /v ""') do set helldiversCount=%%a
if %helldiversCount% gtr 0 (
del /s /q "%APPDATA%\Arrowhead\Helldivers2\shader_cache\*"
echo Deleted %helldiversCount% files from Helldivers2 shader cache.
) else (
echo No files found in Helldivers2 shader cache.
)
REM Count and delete files in D3DSCache
for /f %%a in ('dir "%LOCALAPPDATA%\D3DSCache\*" /a:-d /b /s 2^>nul ^| find /c /v ""') do set d3dCacheCount=%%a
if %d3dCacheCount% gtr 0 (
del /s /q "%LOCALAPPDATA%\D3DSCache\*"
echo Deleted %d3dCacheCount% files from D3DSCache.
) else (
echo No files found in D3DSCache.
)
REM Count and delete files in NVIDIA DXCache
for /f %%a in ('dir "%LOCALAPPDATA%\..\LocalLow\NVIDIA\PerDriverVersion\DXCache\*" /a:-d /b /s 2^>nul ^| find /c /v ""') do set nvidiaCacheCount=%%a
if %nvidiaCacheCount% gtr 0 (
del /s /q "%LOCALAPPDATA%\..\LocalLow\NVIDIA\PerDriverVersion\DXCache\*"
echo Deleted %nvidiaCacheCount% files from NVIDIA DXCache.
) else (
echo No files found in NVIDIA DXCache.
)
echo Cleanup complete.
echo Summary:
echo Helldivers2 shader cache: %helldiversCount% files deleted.
echo D3DSCache: %d3dCacheCount% files deleted.
echo NVIDIA DXCache: %nvidiaCacheCount% files deleted.
pause
이대로 복사하고 txt를 bat로 변경
헬다2 캐시랑 그래픽카드 캐시까지 지워줌
https://steamcommunity.com/app/553850/discussions/0/4295944344102442951
댓글에서 퍼옴
오 이걸로 매번 귀찮게 직접 들어가서 컈시 삭제할일이 없어지는건가 - dc App
캐시 지우면 머가 좋음
이거하면 머가 좋은거에오 - dc App
그래서 이거 왜해야하는거?
난 다렉11로 하는데 한번 지우니깐 다시는 안 생기던데 파일이..
이 명령어를 어떤 파일에 넣어야 하는지는 알려줘야지
1. 메모장을 연다 2. 저 내용을 복붙한다 3. 메모장을 다른 이름으로 저장할 때 확장자명을 .bat으로 한다 4. 만든 bat 파일을 더블클릭한다 5. 끝 6. 쓴 bat 파일은 눈에 띄는 적당한 데 박아둔다
@ㅇㅇ 고마워!