Skip to content

Instantly share code, notes, and snippets.

@Arty2
Created May 11, 2018 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Arty2/8b3a91b66c0bdb177adb8a702eb8e25f to your computer and use it in GitHub Desktop.
Save Arty2/8b3a91b66c0bdb177adb8a702eb8e25f to your computer and use it in GitHub Desktop.
Cleanup utility to delete autosaves and backups by software commonly used in architecture.
@echo off
setlocal
:PROMPT
SET /P CONFIRM=Do you want to delete all ^
Sketchup : .skb, AutoSave_, Backup*.layout ^
AutoCAD : .bak, .dwl, .dwl2, .log, .err ^
Photoshop : .tmp ^
Studio Max : .3dmbak ^
Chrome : .crdownload ^
files in this directory branch? ^
(Y/[N])?
IF /I "%CONFIRM%" NEQ "Y" GOTO END
del /S *.skb
del /S AutoSave_*
del /S Backup*.layout
del /S *.3dmbak
del /S *.bak
del /S *.tmp
del /S *.dwl
del /S *.dwl2
del /S *.log
del /S *.err
del /S *.crdownload
REM ← This is a comment line.
:END
timeout /T 5
endlocal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment