How do you delete hidden files using batch scripts?

1 answer

Answer

1064637

2026-07-15 23:00

+ Follow

You can just delete hidden files with the same del command, but since the files are hidden you need to map the location of the hidden folder in the command so the batch file knows where to look and delete.

@Echo off

del "location of hidden files and/or folders" /Q /F /S

exit

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.