Skip to content

Instantly share code, notes, and snippets.

@madebycm
Created September 14, 2023 20:51
Show Gist options
  • Save madebycm/13bb34d59df111ce0fc69d44b90a4976 to your computer and use it in GitHub Desktop.
Save madebycm/13bb34d59df111ce0fc69d44b90a4976 to your computer and use it in GitHub Desktop.
@echo off
setlocal
echo This script will delete all files in the following directories:
echo %LOCALAPPDATA%\Starfield\
echo %LOCALAPPDATA%\AMD\DxCache\
echo Deleting files...
if exist "%LOCALAPPDATA%\Starfield\" (
del /s /q "%LOCALAPPDATA%\Starfield\*.*"
echo Deleted files in %LOCALAPPDATA%\Starfield\
) else (
echo Directory %LOCALAPPDATA%\Starfield\ does not exist.
)
if exist "%LOCALAPPDATA%\AMD\DxCache\" (
del /s /q "%LOCALAPPDATA%\AMD\DxCache\*.*"
echo Deleted files in %LOCALAPPDATA%\AMD\DxCache\
) else (
echo Directory %LOCALAPPDATA%\AMD\DxCache\ does not exist.
)
echo Done.
endlocal
set /p choice="kbyethx"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment