A
A
Aleksander9112016-01-10 14:24:26
cmd/bat
Aleksander911, 2016-01-10 14:24:26

Bat-file: how to remove files from certain subdirectories?

Good day everyone. Can you please tell me how to delete the contents of several directories that are in subdirectories relative to the bat file itself using a bat file?
bat file \protected\runtime\minScript\groups\
bat file \protected\runtime\cache\
bat file \assets\

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2016-01-10
@petermzg

@ECHO OFF
Set dir=path-to-dir
Echo Deleting all files from %dir%
del %dir%\* /F /Q

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question