Skip to content

Instantly share code, notes, and snippets.

@kirillsulim
Last active August 29, 2015 14:13
Show Gist options
  • Save kirillsulim/a35352aa5ce3aacaceaa to your computer and use it in GitHub Desktop.
Save kirillsulim/a35352aa5ce3aacaceaa to your computer and use it in GitHub Desktop.
Delete all files and subfolders in selected folder
rem no " " in dir name
rem downloads: %UserProfile%\Downloads
rem tmp: %tmp%
set clean_dir=%UserProfile%\Downloads
del /s /q "%clean_dir%\*"
FOR /D %%p IN ("%clean_dir%\*.*") DO rmdir "%%p" /s /q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment