Skip to content

Instantly share code, notes, and snippets.

@bismarckjunior
Created February 25, 2021 01:25
Show Gist options
  • Save bismarckjunior/8e91167a75eb6895d4f6288c8f721ce1 to your computer and use it in GitHub Desktop.
Save bismarckjunior/8e91167a75eb6895d4f6288c8f721ce1 to your computer and use it in GitHub Desktop.
Script para deletar arquivos nas subpastas da pasta Temporario
@echo off
set path="D:\Servidor\Temporario"
del /q "%path%\*.*"
for /d %%i in (%path%\*) do (
rd /s /q "%%i"
mkdir "%%i"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment