Advertisement
Larkank

Delete Cache Folder

Feb 1st, 2025
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.38 KB | Gaming | 0 0
  1. @echo off
  2. REM Navigate to the target directory
  3. cd /d "C:\Path\To\Target\Directory"
  4.  
  5. REM Delete the folder and its contents (including hidden files)
  6. if exist "FolderToDelete" (
  7.     rmdir /s /q "FolderToDelete"
  8.     echo Folder successfully deleted.
  9. ) else (
  10.     echo Folder not found.
  11. )
  12.  
  13. REM Execute the .exe file
  14. start "" "C:\Path\To\YourProgram.exe"
  15.  
  16. REM Exit the script
  17. exit
Tags: WoW batch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement