Skip to content

Instantly share code, notes, and snippets.

@dertajora
Last active July 17, 2017 11:22
Show Gist options
  • Save dertajora/009053c93a1702e5cf1912345d64759c to your computer and use it in GitHub Desktop.
Save dertajora/009053c93a1702e5cf1912345d64759c to your computer and use it in GitHub Desktop.
Batch File I have Played with. Close all opened specified program. Delete temporary file with specific file
rem Close all cmd.exe
taskkill /F /IM cmd.exe /T
rem Delete temporary folder that contain "scope" in its name
FOR /D /R %dir% %%X IN (scope*) DO RMDIR /S /Q "%%X"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment